fix IkiWiki::Setup::load docs

master
Joey Hess 2008-09-12 21:20:34 -04:00
parent f1e29d04a6
commit 97b71834bb
2 changed files with 5 additions and 3 deletions

View File

@ -6,3 +6,5 @@ Shouldn't this print a bunch of output (admittedly not very nicely formatted).
[ 11 rocinante ~/tmp ] perl -M'IkiWiki::Setup' -e 'print IkiWiki::Setup::load("foo.setup");' [ 11 rocinante ~/tmp ] perl -M'IkiWiki::Setup' -e 'print IkiWiki::Setup::load("foo.setup");'
</pre> </pre>
I get nothing with ikiwiki 2.63 [[DavidBremner]] I get nothing with ikiwiki 2.63 [[DavidBremner]]
> The docs were wrong, it populates `%config`. --[[Joey]] [[done]]

View File

@ -805,6 +805,6 @@ when imported, populate `$IkiWiki::Setup::raw_setup` with a reference
to a hash containing all the config items. They should also implement a to a hash containing all the config items. They should also implement a
`gendump` function. `gendump` function.
By the way, to parse a ikiwiki setup file, a program just needs to By the way, to parse a ikiwiki setup file and populate `%config`, a
do something like: program just needs to do something like:
`use IkiWiki::Setup; my %setup=IkiWiki::Setup::load($filename)` `use IkiWiki::Setup; IkiWiki::Setup::load($filename)`