-bug
[ikiwiki.git] / docwiki.setup
blob8b898f61928bb5af36c501586caf4596c0a896ce
1 #!/usr/bin/perl
2 # Configuration file for ikiwiki to build its documentation wiki.
4 # Use git during the build, if it's available and if we're building
5 # from a git checkout. This ensures ikiwiki gets the right mtimes and
6 # ctimes for files in the doc wiki.
7 our $rcs="norcs";
8 BEGIN {
9 my $git=`which git 2>&1`;
10 chomp $git;
11 if (-x $git && -d ".git") {
12 $rcs="git";
16 use IkiWiki::Setup::Standard {
17 wikiname => "ikiwiki",
18 srcdir => "doc",
19 destdir => "html",
20 templatedir => "templates",
21 underlaydirbase => "underlays",
22 underlaydir => "underlays/basewiki",
23 discussion => 0,
24 exclude => qr/\/discussion|bugs\/*|todo\/*|forum\/*/, # save space
25 locale => '',
26 verbose => 1,
27 syslog => 0,
28 userdir => "users",
29 usedirs => 0,
30 prefix_directives => 1,
31 add_plugins => [qw{goodstuff version haiku polygen fortune table}],
32 # not appropriate for doc dir
33 disable_plugins => [qw{recentchanges openid}],
34 rcs => $rcs,
35 gitorigin_branch => '', # don't pull during build