summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-27 19:19:04 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-27 19:19:04 -0400
commit9be28d7865a335a5e0f3d62a3e96178a6dc74a1b (patch)
treeb1f3fa146612b523fc9819c0553af2da95094416
parent36a58fe4644e8b59881d597d2cae71593a8d1ded (diff)
handle options with no value and no example value
-rw-r--r--IkiWiki/Setup/Standard.pm3
-rw-r--r--doc/plugins/write.mdwn6
2 files changed, 6 insertions, 3 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm
index 9d8ec3851..9d4732b6f 100644
--- a/IkiWiki/Setup/Standard.pm
+++ b/IkiWiki/Setup/Standard.pm
@@ -74,6 +74,9 @@ sub dumpvalues ($@) { #{{{
elsif (exists $info{example}) {
push @ret, dumpline($key, $info{example}, $info{type}, "#");
}
+ else {
+ push @ret, dumpline($key, "", $info{type}, "#");
+ }
}
return @ret;
} #}}}
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 6d5056162..04b6ea8e9 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -388,9 +388,9 @@ describing the option. For example:
rebuild => 0,
},
-* `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.
+* `type` can be "boolean", "string", "integer", "pagespec", or "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.
* `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