2007-12-19 23:31:28 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
# Configuration file for ikiwiki to build its documentation wiki.
|
|
|
|
|
2010-04-17 00:29:45 +02:00
|
|
|
# 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";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-12-19 23:31:28 +01:00
|
|
|
use IkiWiki::Setup::Standard {
|
|
|
|
wikiname => "ikiwiki",
|
|
|
|
srcdir => "doc",
|
|
|
|
destdir => "html",
|
|
|
|
templatedir => "templates",
|
2009-05-19 19:57:47 +02:00
|
|
|
underlaydirbase => "underlays",
|
2007-12-19 23:31:28 +01:00
|
|
|
underlaydir => "underlays/basewiki",
|
|
|
|
discussion => 0,
|
2015-06-09 12:00:21 +02:00
|
|
|
exclude => qr/\/discussion|bugs\/*|todo\/*|forum\/*|sandbox\/*/, # save space
|
2007-12-19 23:31:28 +01:00
|
|
|
locale => '',
|
|
|
|
verbose => 1,
|
|
|
|
syslog => 0,
|
|
|
|
userdir => "users",
|
|
|
|
usedirs => 0,
|
2008-07-21 17:41:32 +02:00
|
|
|
prefix_directives => 1,
|
2010-03-29 19:17:49 +02:00
|
|
|
add_plugins => [qw{goodstuff version haiku polygen fortune table}],
|
2010-05-16 05:24:57 +02:00
|
|
|
# not appropriate for doc dir
|
|
|
|
disable_plugins => [qw{recentchanges openid}],
|
2010-04-17 00:29:45 +02:00
|
|
|
rcs => $rcs,
|
|
|
|
gitorigin_branch => '', # don't pull during build
|
2015-06-09 12:38:55 +02:00
|
|
|
deterministic => 1,
|
2007-12-19 23:31:28 +01:00
|
|
|
}
|