]> git.cworth.org Git - ikiwiki-bootstrap/blob - ikiwiki.setup
Remove stray period
[ikiwiki-bootstrap] / ikiwiki.setup
1 #!/usr/bin/perl
2 # Configuration file for ikiwiki.
3 # Passing this to ikiwiki --setup will make ikiwiki generate wrappers and
4 # build the wiki.
5 #
6 # Remember to re-run ikiwiki --setup any time you edit this file.
7
8 # The gitrepo parameter should point to a bare git repository which is
9 # cloned from and pushed to by anyone using git to maintain the wiki.
10 #
11 # The checkout parameter should point to a clone of that repository,
12 # but this clone is owned by ikiwiki so its working-copy content
13 # should never be edited manually, nor should anybody clone from or
14 # push to this repository. To make this quite clear, I suggest hiding
15 # the checkout inside the repository as shown below.
16 #
17 # To set this up, just do:
18 #
19 #       mkdir -p $gitrepo
20 #       cd $gitrepo
21 #       GIT_DIR=. git init-db
22 #       git clone $gitrepo ikiwiki-checkout
23 #
24 # And then push into $gitrepo this ikiwiki.setup file, a templates/
25 # directory, and a src/ directory with your wiki content. See README
26 # for more details.
27 #
28 # Also, see the destdir and url parameters below which must also be
29 # configured before things will work at all.
30
31 our ($gitrepo, $checkout);
32
33 BEGIN {
34         $gitrepo = "/path/to/bare/git/repo";
35         $checkout = "$gitrepo/ikiwiki-checkout";
36 }
37
38 use IkiWiki::Setup::Standard {
39
40         # These (along with gitrepo above) must be configured
41         # correctly before anything will work
42         destdir => "/var/www/wiki",
43         url => "http://example.org/wiki",
44         cgiurl => "http://example.org/ikiwiki.cgi",
45
46         # And you'll likely want to customise these as well
47         wikiname => "MyWiki",
48         #adminuser => ["yourname", ],
49         adminemail => 'me@example.org',
50
51         # Everything else can be customised on an as-needed basis
52         srcdir => "$checkout/src",
53         templatedir => "$checkout/templates",
54
55         # There's not really much point to having an underlay come
56         # from the same place as the rest of the source like this:
57         #
58         #       underlaydir => "$checkout/underlay",
59         #
60         # since you might as well put such content in src/ instead of
61         # in underlay. I suppose if you have some files common to
62         # several separate wiki instances then the underlay might
63         # still be useful. But for now, we'll just leave it off.
64         underlaydir => "/dev/null",
65
66         # Git stuff.
67         rcs => "git",
68         #historyurl => "http://git.example.org/gitweb.cgi?p=wiki.git;a=history;f=[[file]]",
69         #diffurl => "http://git.example.org/gitweb.cgi?p=wiki.git;a=blobdiff;h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_parent]];f=[[file]]",
70         gitorigin_branch => "origin",
71         gitmaster_branch => "master",
72
73         wrappers => [
74                 #{
75                 #       # The cgi wrapper.
76                 #       cgi => 1,
77                 #       wrapper => "/var/www/wiki/ikiwiki.cgi",
78                 #       wrappermode => "06755",
79                 #},
80                 {
81                         # Instead of overwriting git's post-update script
82                         # we generate a new program that can be called by
83                         # post-update as desired.
84                         wrapper => "$gitrepo/hooks/ikiwiki-post-update",
85                         wrappermode => "04755",
86                         # Enable mail notifications of commits.
87                         #notify => 1,
88                 },
89         ],
90
91         # Generate rss feeds for blogs?
92         rss => 1,
93         # Generate atom feeds for blogs?
94         atom => 1,
95         # Urls to ping with XML-RPC when rss feeds are updated
96         #pingurl => [qw{http://rpc.technorati.com/rpc/ping}],
97         # Include discussion links on all pages?
98         discussion => 1,
99         # To exclude files matching a regexp from processing. This adds to
100         # the default exclude list.
101         #exclude => qr/*\.wav/,
102         # Time format (for strftime)
103         #timeformat => '%c',
104         # Locale to use. Must be a UTF-8 locale.
105         #locale => 'en_US.UTF-8',
106         # Only send cookies over SSL connections.
107         #sslcookie => 1,
108         # Logging settings:
109
110         # It's stupid to set verbose to 0 here since it's the default
111         # anyway, and it has the side effect of making --verbose on
112         # the command-line not work.
113         # verbose => 0,
114
115         syslog => 0,
116         # To link to user pages in a subdirectory of the wiki.
117         #userdir => "users",
118         # To create output files named page.html rather than page/index.html.
119         #usedirs => 0,
120         # Simple spam prevention: require an account-creation password.
121         #account_creation_password => "example",
122
123         # To add plugins, list them here.
124         #add_plugins => [qw{goodstuff search wikitext camelcase
125         #                   htmltidy fortune sidebar map rst anonok}],
126         # If you want to disable any of the default plugins, list them here.
127         #disable_plugins => [qw{inline htmlscrubber passwordauth openid}],
128
129         # For use with the tag plugin, make all tags be located under a
130         # base page.
131         #tagbase => "tag",
132
133         # For use with the search plugin if your estseek.cgi is located
134         # somewhere else.
135         #estseek => "/usr/lib/estraier/estseek.cgi",
136
137         # For use with the openid plugin, to give an url to a page users
138         # can use to signup for an OpenID.
139         #openidsignup => "http://myopenid.com/",
140
141         # For use with the mirrorlist plugin, a list of mirrors.
142         #mirrorlist => {
143         #       mirror1 => "http://hostname1",
144         #       mirror2 => "http://hostname2/mirror",
145         #},
146 }