X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=docwiki.setup;h=6bc200066fe565007cb6cc3228c0ac74e4ee19c5;hb=99cdd38dd54047d0e79dbf65d58ba11ee38f2c92;hp=cd8ba5760b0755dda314ea8d569249a3050cc853;hpb=a9d7c5453ae0f214f86043381310b81ad358b933;p=ikiwiki.git diff --git a/docwiki.setup b/docwiki.setup index cd8ba5760..6bc200066 100644 --- a/docwiki.setup +++ b/docwiki.setup @@ -1,20 +1,35 @@ #!/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", discussion => 0, - exclude => qr/\/discussion|bugs\/*|todo\/*/, + exclude => qr/\/discussion|bugs\/*|todo\/*|forum\/*/, # save space locale => '', verbose => 1, syslog => 0, userdir => "users", usedirs => 0, - indexpages => 1, prefix_directives => 1, - add_plugins => [qw{goodstuff version haiku polygen fortune}], + 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 }