aboutsummaryrefslogtreecommitdiff
path: root/docwiki.setup
blob: 8355f7e937dfc992e1848f5a1da2a666e969f223 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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",
	discussion => 0,
	exclude => qr/\/discussion|bugs\/*|todo\/*|forum\/*|sandbox\/*|users\/*|TourBusStop/, # save space
	locale => '',
	verbose => 1,
	syslog => 0,
	userdir => "users",
	usedirs => 0,
	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,
}