X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9e6a4ccfddab3fc90ac8ce63522047fe85aeefcd..f4f5a2f40a2e8057cd682c0ec60978c7dad6f38b:/docwiki.setup?ds=sidebyside diff --git a/docwiki.setup b/docwiki.setup index bbe2d438a..8b898f619 100644 --- a/docwiki.setup +++ b/docwiki.setup @@ -1,22 +1,36 @@ #!/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, - add_plugins => [qw{goodstuff version polygen fortune amazon_s3}], - amazon_s3_key_id => '08TJMT99S3510QHZEP82', - amazon_s3_bucket => 'ikiwiki-test', - amazon_s3_key_file => "/home/joey/.hide/aws_secret_access_key", + 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 }