Amitai Schlair
2c3efbb3ce
When generating scripts, give them the interpreter we generated them with.
2012-01-08 12:06:56 -05:00
Joey Hess
19a794b482
parameterized indent
2010-03-19 15:44:28 -04:00
Joey Hess
10f8a2c858
improve comments
2010-03-19 15:36:33 -04:00
Joey Hess
bbe1f2e493
move generic comment into IkiWiki::Setup
2010-03-19 15:35:21 -04:00
Joey Hess
522daa7ea8
factored out generic commented line dumping
2010-03-19 15:27:15 -04:00
Joey Hess
b1dade8d96
allow multiple setup file types, and support safe parsing
...
Finally removed the last hardcoding of IkiWiki::Setup::Standard.
Take the first "IkiWiki::Setup::*" in the setup file to define the
setuptype, and remember that type to use in dumping later. (But it can be
overridden using --set, etc.)
Also, support setup file types that are not evaled.
2010-03-19 14:52:17 -04:00
Joey Hess
805b3afff7
formatting sillyness
2010-02-12 04:09:57 -05:00
Joey Hess
2d4b84e45f
borders
2010-02-12 01:16:20 -05:00
Joey Hess
0ea2f0936b
add plugin section, and show which plugins need no configuration
2010-02-12 01:10:27 -05:00
Joey Hess
a63929f6cc
Group related plugins into sections in the setup file, and drop unused rcs plugins from the setup file.
2010-02-11 22:24:15 -05:00
Joey Hess
bb93fccf06
Coding style change: Remove explcit vim folding markers.
2008-12-17 15:22:16 -05:00
Joey Hess
423fae6f18
Use the pure perl Data::Dumper when generating setup files to ensure that utf-8 characters are written out as such, and not as the encoded perl strings the C Data::Dumper produces.
...
Note that the text produced by the C version was interpreted fine
when ikiwiki loaded the setup file. But it was not user-friendly.
2008-10-19 21:23:48 -04:00
Joey Hess
4b994ffed1
avoid forcing syslog setting
...
This avoids forcing the setting to 0 if it was not set at all.
2008-08-05 19:36:53 -04:00
Joey Hess
a4ce6550eb
loosen qw regexp
2008-08-03 22:16:38 -04:00
Joey Hess
018321f2c8
fix misc breakage from plugin safe/rebuild data addition
2008-08-03 18:17:13 -04:00
Joey Hess
9e0cbb73fe
plugin safe/rebuild controls
2008-08-03 16:23:41 -04:00
Joey Hess
f6babf662b
fix syntax error with corrupt data
...
Just because it's supposed to be an integer or boolean doesn't mean the
vlaue really is..
2008-08-02 23:14:23 -04:00
Joey Hess
4708aeceb3
websetup form display done
2008-08-02 16:41:37 -04:00
Joey Hess
0b6dd9247b
refactor
2008-08-02 16:41:35 -04:00
Joey Hess
9be28d7865
handle options with no value and no example value
2008-07-27 19:19:04 -04:00
Joey Hess
3d4c32dace
lose the ugly $rawsetup, use a function
2008-07-27 15:08:10 -04:00
Joey Hess
67a63e7860
fixups
2008-07-26 22:38:43 -04:00
Joey Hess
82f0facb62
fixups
2008-07-26 21:14:07 -04:00
Joey Hess
38618838c9
add example wrapper and fix formatting
2008-07-26 19:49:45 -04:00
Joey Hess
bb872ea1e8
filter out demo plugins
2008-07-26 19:11:31 -04:00
Joey Hess
52bbdbb1a5
load all plugins when generating setup
2008-07-26 19:10:11 -04:00
Joey Hess
66739016fa
add gensetup for git
2008-07-26 18:10:01 -04:00
Joey Hess
cab1ac75c9
refactor
2008-07-26 15:43:25 -04:00
Joey Hess
b073359b18
refactor
2008-07-26 15:39:41 -04:00
Joey Hess
1c00717cb2
can now dump fully functional setup files
2008-07-26 15:34:38 -04:00
Joey Hess
abab46f983
add info for all common setup file options, and most internal ones
2008-07-26 14:39:12 -04:00
Joey Hess
6b19afb3ef
fixes
2008-07-26 13:10:52 -04:00
Joey Hess
255172215e
fixes
2008-07-26 12:53:07 -04:00
Joey Hess
5bea644fdd
add dumpsetup option; refactor
2008-07-26 12:46:31 -04:00
Joey Hess
62cd2e0a5d
setup dumping improvements
2008-07-26 12:01:10 -04:00
Joey Hess
e727d5b6e9
more formatting
2008-07-26 02:04:30 -04:00
Joey Hess
fe2fe5aa4b
improve formatting
2008-07-26 01:58:36 -04:00
Joey Hess
278ae9afea
add ability to generate setup files
...
quite nice ones, too, with comments and everything
2008-07-26 01:35:26 -04:00
Joey Hess
4e1d7d8ff2
fix use ordering
...
The recent setup revamp exposed some latent bugs in use/package ordering
that caused some symbols to not the exported into the correct scope.
2008-07-11 06:09:34 -04:00
Joey Hess
4e02dead14
Make it possible to load setup files w/o running them. Code needing to do so can call IkiWiki::Setup::load, and the values will be loaded into %IkiWiki::Setup::setup.
2008-07-09 22:39:26 -04:00
Joey Hess
a3d8f4904e
set rebuild before loading plugins
...
This fixes a recent minor reversion caused by loading plugins earlier than
the messages are printed. Some plugins might check if rebuild is set.
2008-06-04 15:22:41 -04:00
Joey Hess
b7950d8d01
load plugins before printing messages
...
This allows plugins to getopt and change what is done before an incorrect
line is printed.
2008-05-08 16:08:02 -04:00
joey
b1560f7275
* Correct a longstanding bug that could cause the edit form to be empty.
...
This turns out to have occured if the cgi wrapper was created by an
ikiwiki invocation that included --rebuild. Thanks to Carl Worth for
tracking that down.
2007-06-30 00:48:39 +00:00
joey
50a9ef4753
* Make ikiwiki -verbose -setup with a setup file that enabled syslog logging
...
output the verbose build log to stdout, rather than to the syslog.
2007-03-17 23:32:48 +00:00
joey
c60477228c
* Since the CGI had to drop the wiki lock to avoid deadlocking the
...
commit hook, it was possible for one CGI to race another one and "win"
the commit of both their files. This race has been fixed by adding a new
commitlock, which when locked by the CGI, disables the commit hook
(except for commit mails). The CGI then takes care of the updates the
commit hook would have done.
2007-02-21 08:55:28 +00:00
joey
b5e2afa943
* Allow disabling of plugins included in goodstuff.
2006-12-29 04:49:55 +00:00
joey
912521ef07
* Initial work on internationalization of the program code. po/ikiwiki.pot
...
is available for translation.
* Export gettext() from IkiWiki module.
2006-12-29 04:38:40 +00:00
joey
472dabbb60
* Turn $config{wiki_file_prune_regexps} into an array that is easier to
...
manipulate.
* Only exclude rss and atom files from processing if the inline plugin
is enabled and that feed type is enabled. Else it's just a copyable file
type.
* Move rss and atom option handling code into the inline plugin.
* Applied a rather old patch from Recai to fix the "pruning is too strict"
issue. Now you can have wiki source directories inside dotdirs and the
like, if you want.
2006-12-21 19:36:15 +00:00
joey
c35444826c
* Add --render mode, which can be used to preview an edit at the command
...
line by test rendering a single page.
2006-09-21 21:34:29 +00:00
joey
aa04f54ae9
* Patch from Jordà Polo to make Setup::Standard support hashes in config
...
files.
2006-08-23 18:41:32 +00:00