#!/usr/bin/perl
# Configuration file for ikiwiki to build its documentation wiki.
+# Use git during the build, if it's available and if we're building
+# from a git checkout. This ensures ikiwiki gets the right mtimes and
+# ctimes for files in the doc wiki.
+our $rcs="norcs";
+BEGIN {
+ my $git=`which git 2>&1`;
+ chomp $git;
+ if (-x $git && -d ".git") {
+ $rcs="git";
+ }
+}
+
use IkiWiki::Setup::Standard {
wikiname => "ikiwiki",
srcdir => "doc",
destdir => "html",
templatedir => "templates",
+ underlaydirbase => "underlays",
underlaydir => "underlays/basewiki",
- wrappers => [],
discussion => 0,
- exclude => qr/\/discussion/,
+ exclude => qr/\/discussion|bugs\/*|todo\/*|forum\/*/, # save space
locale => '',
verbose => 1,
syslog => 0,
userdir => "users",
usedirs => 0,
- rcs => 'git',
- rss => 1,
- cgiurl => "http://ikiwiki.info/ikiwiki.cgi",
- url => "http://ikiwiki.info",
- add_plugins => [qw{goodstuff version haiku polygen fortune
- recentchanges }],
+ prefix_directives => 1,
+ add_plugins => [qw{goodstuff version haiku polygen fortune table}],
+ disable_plugins => [qw{recentchanges}], # not appropriate for doc dir
+ rcs => $rcs,
+ gitorigin_branch => '', # don't pull during build
}