summaryrefslogtreecommitdiff
path: root/ikiwiki_nb.setup
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-09-03 16:32:21 +0200
committerJonas Smedegaard <dr@jones.dk>2010-09-03 16:32:21 +0200
commitaa4d960cf5f51fd813a9a7cac521c14cc7100a98 (patch)
tree33cfd25a0e7467ba12bacdf9f300943b530dfe7f /ikiwiki_nb.setup
parent7919f8bdad802db4311cdbc4d20737367d3dabf7 (diff)
parentcbe1472ad76c9292f4748c3ed1efdc08eba71f72 (diff)
Merge branch 'allinone-nb' into allinone-multilang
Conflicts (manually resolved): ikiwiki_nb.setup ikiwiki_nb_admin.setup
Diffstat (limited to 'ikiwiki_nb.setup')
-rw-r--r--ikiwiki_nb.setup42
1 files changed, 17 insertions, 25 deletions
diff --git a/ikiwiki_nb.setup b/ikiwiki_nb.setup
index 30b3e15..f376e2d 100644
--- a/ikiwiki_nb.setup
+++ b/ikiwiki_nb.setup
@@ -6,20 +6,12 @@
#
# Remember to re-run ikiwiki --setup any time you edit this file.
-our $libdir;
-our $webdir;
-our $cgidir;
-our $gitdir;
-our $webhost;
-our $githost;
-our $gitrepo;
+our ($basedir, $builddir, $domain, $gitrepo);
BEGIN {
- $libdir = $ENV{'PWD'} . '/perl';
- $webdir = 'build/html';
- $cgidir = 'build/cgi';
- $gitdir = 'build/git';
- $webhost = 'wiki.example.org';
- $githost = 'git.example.org';
+ # git hook requires full path as basedir: $ENV{'HOME'} . '/mywiki'
+ $basedir = $ENV{'PWD'};
+ $builddir = $ENV{'BUILDDIR'} || $basedir . '/build';
+ $domain = 'example.org';
$gitrepo = 'wiki';
}
@@ -27,21 +19,21 @@ use IkiWiki::Setup::Standard {
# name of the wiki
wikiname => 'MyWiki',
# contact email for wiki
- #adminemail => 'me@example.org',
+ #adminemail => 'me@' . $domain,
# users who are wiki admins
adminuser => [],
# users who are banned from the wiki
banned_users => [],
# where the source of the wiki is located
- srcdir => 'content_dummy_nb',
+ srcdir => $basedir . '/content_dummy_nb',
# where to build the wiki
- destdir => $webdir,
+ destdir => $builddir . '/html',
# base url to the wiki
- url => 'http://' . $webhost . '/',
+ url => 'http://wiki.' . $domain . '/',
# url to the ikiwiki.cgi
- cgiurl => 'http://' . $webhost . '/ikiwiki.nb.cgi',
+ cgiurl => 'http://wiki.' . $domain . '/ikiwiki.nb.cgi',
# cgi wrapper to generate
- cgi_wrapper => $cgidir . '/ikiwiki.nb.cgi',
+ cgi_wrapper => $builddir . '/cgi/ikiwiki.nb.cgi',
# mode for cgi_wrapper (can safely be made suid)
cgi_wrappermode => '00755',
# rcs backend to use
@@ -54,12 +46,12 @@ use IkiWiki::Setup::Standard {
editpage
}],
# location of template files
- templatedir => 'templates_nb',
+ templatedir => $basedir . '/templates_nb',
# base wiki source location
underlaydirs => [
- 'content',
+ $basedir . '/content',
],
- underlaydir => 'basewiki_nb',
+ underlaydir => $basedir . '/basewiki_nb',
# display verbose messages when building?
#verbose => 1,
# log to syslog?
@@ -91,7 +83,7 @@ use IkiWiki::Setup::Standard {
# force ikiwiki to use a particular umask
#umask => 022,
# extra library and plugin directory
- libdir => $libdir,
+ libdir => $basedir . '/perl',
# environment variables
ENV => {},
# regexp of source files to ignore
@@ -151,9 +143,9 @@ use IkiWiki::Setup::Standard {
# mode for git_wrapper (can safely be made suid)
git_wrappermode => '06755',
# gitweb url to show file history ([[file]] substituted)
- #historyurl => 'http://' . $githost . '/gitweb.cgi?p=' . $gitrepo . '.git;a=history;f=[[file]];hb=master-nb',
+ #historyurl => 'http://source.' . $domain . '/gitweb.cgi?p=' . $gitrepo . '.git;a=history;f=[[file]];hb=master',
# gitweb url to show a diff ([[sha1_to]], [[sha1_from]], [[sha1_parent]], and [[file]] substituted)
- #diffurl => 'http://' . $githost . '/gitweb.cgi?p=' . $gitrepo . '.git;a=blobdiff;h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_parent]];f=[[file]]',
+ #diffurl => 'http://source.' . $domain . '/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