1 Would it be possible to add an option to only generate the index files
2 for the html output and not place the markdown files in the wiki source?
4 The reason being that I have a lot of directories which need to be autoindexed,
5 but I would prefer if the index files didn't clutter up my git repository.
7 even without that feature the plugin is a great help, thanks
12 If you just don't want to clutter your git repo, below it's a patch does the following:
14 * If you set autoindex_commit to 0 in your ikiwiki.setup file, we *do* place auto-generated markdown files in the **wiki source** but *not* in the **repo**
16 * If you set autoindex_commit to 1 (this is the default), auto-generated index files will be put in the repo provided you enabled rcs backend.
19 --- autoindex.pm.orig 2009-10-01 17:13:51.000000000 +0800
20 +++ autoindex.pm 2009-10-01 17:21:09.000000000 +0800
25 + autoindex_commit => {
28 + description => 'commit generated autoindex pages into RCS',
36 my $template=template("autoindex.tmpl");
37 $template->param(page => $page);
38 writefile($file, $config{srcdir}, $template->output);
40 + if ($config{rcs} and $config{autoindex_commit}) {
41 IkiWiki::rcs_add($file);
49 + if ($config{rcs} and $config{autoindex_commit}) {
50 IkiWiki::disable_commit_hook();
52 foreach my $page (@needed) {
56 + if ($config{rcs} and $config{autoindex_commit}) {
57 IkiWiki::rcs_commit_staged(
58 gettext("automatic index generation"),
63 Warning: I guess this patch may work, but I *haven't tested it yet*. -- [[weakish]]