X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=blobdiff_plain;f=docwiki.setup;h=8b898f61928bb5af36c501586caf4596c0a896ce;hp=41c07f024b441acd2d09856955d2fd812f3f43c3;hb=2a1fac91f03119aaf767f5a3439123a9cdcc7af1;hpb=5f9860e65c65aa769f11e550e63cc164b1519710 diff --git a/docwiki.setup b/docwiki.setup index 41c07f024..8b898f619 100644 --- a/docwiki.setup +++ b/docwiki.setup @@ -1,6 +1,18 @@ #!/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", @@ -9,12 +21,16 @@ use IkiWiki::Setup::Standard { 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, prefix_directives => 1, - add_plugins => [qw{linkmap goodstuff version haiku polygen fortune}], + 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 }