diff options
Diffstat (limited to 'ikiwiki_da.setup')
-rw-r--r-- | ikiwiki_da.setup | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/ikiwiki_da.setup b/ikiwiki_da.setup index f1d8b01..1526330 100644 --- a/ikiwiki_da.setup +++ b/ikiwiki_da.setup @@ -6,12 +6,20 @@ # # Remember to re-run ikiwiki --setup any time you edit this file. -our ($basedir, $builddir, $domain, $gitrepo); +our $libdir; +our $webdir; +our $cgidir; +our $gitdir; +our $webhost; +our $githost; +our $gitrepo; BEGIN { - # git hook requires full path as basedir: $ENV{'HOME'} . '/mywiki' - $basedir = $ENV{'PWD'}; - $builddir = $ENV{'BUILDDIR'} || $basedir . '/build'; - $domain = 'example.org'; + $libdir = $ENV{'PWD'} . '/perl'; + $webdir = 'build/html'; + $cgidir = 'build/cgi'; + $gitdir = 'build/git'; + $webhost = 'wiki.example.org'; + $githost = 'git.example.org'; $gitrepo = 'wiki'; } @@ -19,21 +27,21 @@ use IkiWiki::Setup::Standard { # name of the wiki wikiname => 'MyWiki', # contact email for wiki - #adminemail => 'me@' . $domain, + #adminemail => 'me@example.org', # users who are wiki admins adminuser => [], # users who are banned from the wiki banned_users => [], # where the source of the wiki is located - srcdir => $basedir . '/content_dummy', + srcdir => $basedir . '/content_dummy_da', # where to build the wiki - destdir => $builddir . '/html', + destdir => $webdir, # base url to the wiki - url => 'http://wiki.' . $domain . '/', + url => 'http://' . $webhost . '/', # url to the ikiwiki.cgi - cgiurl => 'http://wiki.' . $domain . '/ikiwiki.cgi', + cgiurl => 'http://' . $webhost . '/ikiwiki.da.cgi', # cgi wrapper to generate - cgi_wrapper => $builddir . '/cgi/ikiwiki.cgi', + cgi_wrapper => $cgidir . '/ikiwiki.da.cgi', # mode for cgi_wrapper (can safely be made suid) cgi_wrappermode => '00755', # rcs backend to use @@ -46,12 +54,12 @@ use IkiWiki::Setup::Standard { editpage }], # location of template files - templatedir => $basedir . '/templates', + templatedir => 'templates_da', # base wiki source location underlaydirs => [ - $basedir . '/content', + $basedir . '/content_da', ], - underlaydir => $basedir . '/basewiki', + underlaydir => $basedir . '/basewiki_da', # display verbose messages when building? #verbose => 1, # log to syslog? @@ -69,7 +77,7 @@ use IkiWiki::Setup::Standard { # extension to use for new pages default_pageext => 'mdwn', # extension to use for html files - htmlext => 'html', + htmlext => 'da.html', # strftime format string to display date timeformat => '%c', # UTF-8 locale to use @@ -83,7 +91,7 @@ use IkiWiki::Setup::Standard { # force ikiwiki to use a particular umask #umask => 022, # extra library and plugin directory - libdir => $basedir . '/perl', + libdir => $libdir, # environment variables ENV => {}, # regexp of source files to ignore @@ -145,7 +153,7 @@ use IkiWiki::Setup::Standard { # gitweb url to show file history ([[file]] substituted) #historyurl => 'http://source.' . $domain . '/gitweb.cgi?p=' . $gitrepo . '.git;a=history;f=[[file]];hb=master-da', # gitweb url to show a diff ([[sha1_to]], [[sha1_from]], [[sha1_parent]], and [[file]] substituted) - #diffurl => 'http://source.' . $domain . '/gitweb.cgi?p=' . $gitrepo . '.git;a=blobdiff;h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_parent]];f=[[file]]', + #diffurl => 'http://' . $githost . '/gitweb.cgi?p=' . $gitrepo . '.git;a=blobdiff;h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_parent]];f=[[file]]', # where to pull and push changes (set to empty string to disable) #gitorigin_branch => 'samplewiki', # branch that the wiki is stored in |