add --diffurl, if set RecentChanges has links to svn diffs
[ikiwiki] / doc / ikiwiki.setup
1 #!/usr/bin/perl
2 # Configuration file for ikiwiki.
3 # Passing this to ikiwiki --setup will make ikiwiki generate two
4 # wrapper programs, one for cgi and one for a subversion post-commit hook.
5 #
6 # Remember to re-run ikiwiki --setup any time you edit this file.
7
8 use IkiWiki::Setup::Standard {
9         wikiname => "MyWiki",
10
11         # Be sure to customise these..
12         srcdir => "/path/to/source",
13         destdir => "/var/www/wiki",
14         templatedir => "/usr/share/ikiwiki/templates",
15
16         url => "http://myhost/wiki",
17         cgiurl => "http://myhost/ikiwiki.cgi",
18         #historyurl => "http://svn.myhost/trunk/[[file]]",
19         #diffurl => "http://svn.someurl/trunk/[[file]]?root=wiki&r1=[[r1]]&r2=[[r2]]",
20         
21         # Whether to integrate with svn.
22         svn => 1,
23         svnrepo => "/svn/wiki",
24
25         wrappers => [
26                 {
27                         # The svn wrapper.
28                         # Note that this will overwrite any exsting
29                         # post-commit hook script, which may not be
30                         # what you want.
31                         wrapper => "/svn/wiki/hooks/post-commit",
32                         wrappermode => 04755,
33                 },
34                 {
35                         # The cgi wrapper.
36                         #cgiwrapper => {
37                         #       cgi => 1,
38                         #       wrapper => "/var/www/wiki/ikiwiki.cgi",
39                         #       wrappermode => 06755,
40                         #},
41                 },
42         ],
43         
44         # Can anonymous web users edit pages?
45         #anonok => 1,
46 }