remove default values in getsetup

They were a bit confusing, since they did not actually set the default, and
example values are sufficient.
master
Joey Hess 2008-07-26 21:07:15 -04:00
parent c83fd4a328
commit 42ac4ec009
17 changed files with 19 additions and 27 deletions

View File

@ -42,14 +42,14 @@ sub getsetup () { #{{{
return
aggregateinternal => {
type => "boolean",
default => 0,
example => 0,
description => "enable aggregation to internal pages?",
safe => 0, # enabling needs manual transition
rebuild => 0,
},
aggregate_webtrigger => {
type => "boolean",
default => 0,
example => 0,
description => "allow aggregation to be triggered via the web?",
safe => 1,
rebuild => 0,

View File

@ -79,7 +79,7 @@ sub getsetup () { #{{{
},
amazon_s3_dupindex => {
type => "boolean",
default => 0,
example => 0,
description => "store each index file twice? (allows urls ending in \"/index.html\" and \"/\")",
safe => 1,
rebuild => 1,

View File

@ -16,7 +16,6 @@ sub getsetup () { #{{{
return
virus_checker => {
type => "string",
default => "",
example => "clamdscan -",
description => "virus checker program (reads STDIN, returns nonzero if virus found)",
safe => 0, # executed

View File

@ -39,7 +39,7 @@ sub getsetup () { #{{{
return
archivebase => {
type => "string",
default => "archives",
example => "archives",
description => "base of the archives hierarchy",
safe => 1,
rebuild => 1,

View File

@ -49,35 +49,34 @@ sub getsetup () { #{{{
return
rss => {
type => "boolean",
default => 0,
example => 0,
description => "enable rss feeds by default?",
safe => 1,
rebuild => 1,
},
atom => {
type => "boolean",
default => 0,
example => 0,
description => "enable atom feeds by default?",
safe => 1,
rebuild => 1,
},
allowrss => {
type => "boolean",
default => 0,
example => 0,
description => "allow rss feeds to be used?",
safe => 1,
rebuild => 1,
},
allowatom => {
type => "boolean",
default => 0,
example => 0,
description => "allow atom feeds to be used?",
safe => 1,
rebuild => 1,
},
pingurl => {
type => "string",
default => "",
example => "http://rpc.technorati.com/rpc/ping",
description => "urls to ping (using XML-RPC) on feed update",
safe => 1,

View File

@ -15,7 +15,7 @@ sub getsetup () { #{{{
return
multimarkdown => {
type => "boolean",
default => 0,
example => 0,
description => "enable multimarkdown features?",
safe => 1,
rebuild => 1,

View File

@ -14,7 +14,7 @@ sub getsetup () { #{{{
return
mirrorlist => {
type => "string",
default => {},
example => {},
description => "list of mirrors",
safe => 1,
rebuild => 1,

View File

@ -25,7 +25,6 @@ sub getsetup () { #{{{
return
openidsignup => {
type => "string",
default => "",
example => "http://myopenid.com/",
description => "an url where users can signup for an OpenID",
safe => 1,

View File

@ -17,14 +17,14 @@ sub getsetup () { #{{{
return
account_creation_password => {
type => "string",
default => "",
example => "s3cr1t",
description => "a password that must be entered when signing up for an account",
safe => 1,
rebuild => 0,
},
password_cost => {
type => "integer",
default => 8,
example => 8,
description => "cost of generating a password using Authen::Passphrase::BlowfishCrypt",
safe => 1,
rebuild => 0,

View File

@ -20,7 +20,7 @@ sub getsetup () { #{{{
return
pinger_timeout => {
type => "integer",
default => 15,
example => 15,
description => "how many seconds to try pinging before timing out",
safe => 1,
rebuild => 0,

View File

@ -48,14 +48,13 @@ sub getsetup () { #{{{
return
prettydateformat => {
type => "string",
default => '%X, %B %o, %Y',
example => '%X, %B %o, %Y',
description => "format to use to display date",
safe => 1,
rebuild => 1,
},
timetable => {
type => "internal",
default => undef,
description => "array of time descriptions",
safe => 1,
rebuild => 1,

View File

@ -18,14 +18,14 @@ sub getsetup () { #{{{
return
recentchangespage => {
type => "string",
default => "recentchanges",
example => "recentchanges",
description => "name of the recentchanges page",
safe => 1,
rebuild => 1,
},
recentchangesnum => {
type => "integer",
default => 100,
example => 100,
description => "number of changes to track",
safe => 1,
rebuild => 0,

View File

@ -19,7 +19,6 @@ sub getsetup () { #{{{
return
omega_cgi => {
type => "string",
default => "/usr/lib/cgi-bin/omega/omega",
description => "path to the omega cgi program",
safe => 0, # external program
rebuild => 0,

View File

@ -43,7 +43,7 @@ sub getsetup () { #{{{
return
skeleton => {
type => "boolean",
default => 0,
example => 0,
description => "example option",
safe => 0,
rebuild => 0,

View File

@ -27,7 +27,6 @@ sub getsetup () { #{{{
return
tagbase => {
type => "string",
default => "",
example => "tag",
description => "parent page tags are located under",
safe => 1,

View File

@ -26,7 +26,7 @@ sub getsetup () { #{{{
return
typographyattributes => {
type => "string",
default => "3",
example => "3",
example => "tag",
description => "Text::Typography attributes value",
safe => 1,

View File

@ -376,7 +376,6 @@ describing the option. For example:
return
option_foo => {
type => "boolean",
default => 0,
description => "enable foo",
safe => 1,
rebuild => 1,
@ -392,8 +391,7 @@ describing the option. For example:
* `type` can be "boolean", "string", "integer", "internal" (used for values
that are not user-visible). The type is the type of the leaf values;
the `%config` option may be an array or hash of these.
* `default` should be set to the default value of the option, if any.
* `example` can be set to an example value, which will not be used by default.
* `example` can be set to an example value.
* `description` is a short description of the option.
* `safe` should be false if the option should not be displayed in unsafe
configuration methods, such as the web interface. Anything that specifies