X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fba4a198b58bdfb33590bda5eaf89bf96ed60099..19d79818247058dbe07cf85bf158f5c01254e100:/docwiki.setup diff --git a/docwiki.setup b/docwiki.setup index 64e5e4ac6..8355f7e93 100644 --- a/docwiki.setup +++ b/docwiki.setup @@ -1,20 +1,37 @@ #!/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\/*|sandbox\/*|users\/*|TourBusStop/, # save space locale => '', verbose => 1, syslog => 0, userdir => "users", usedirs => 0, - multimarkdown => 1, - add_plugins => [qw{goodstuff version haiku polygen fortune}], + prefix_directives => 1, + add_plugins => [qw{goodstuff version haiku polygen fortune table}], + # not appropriate for doc dir + disable_plugins => [qw{recentchanges openid}], + rcs => $rcs, + gitorigin_branch => '', # don't pull during build + deterministic => 1, }