diff options
Diffstat (limited to 'ikiwiki_da.setup')
-rw-r--r-- | ikiwiki_da.setup | 96 |
1 files changed, 28 insertions, 68 deletions
diff --git a/ikiwiki_da.setup b/ikiwiki_da.setup index 1e8a2a7..14ee1e0 100644 --- a/ikiwiki_da.setup +++ b/ikiwiki_da.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{'SRCDIR'} || $ENV{'PWD'}; + $builddir = $ENV{'BUILDDIR'} || $basedir . '/build'; + $domain = 'example.org'; $gitrepo = 'wiki'; } @@ -27,35 +19,40 @@ 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_da', + srcdir => $basedir . '/content_dummy_da', # 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.da.cgi', + cgiurl => 'http://wiki.' . $domain . '/ikiwiki.da.cgi', # cgi wrapper to generate - cgi_wrapper => $cgidir . '/ikiwiki.da.cgi', + cgi_wrapper => $builddir . '/cgi/ikiwiki.da.cgi', # mode for cgi_wrapper (can safely be made suid) cgi_wrappermode => '00755', # rcs backend to use rcs => 'git', # plugins to add to the default configuration add_plugins => [qw{ + h1title }], # plugins to disable disable_plugins => [qw{ + editpage }], # location of template files - templatedir => 'templates_da', + templatedir => $basedir . '/templates_da', # base wiki source location - underlaydir => 'basewiki_da', + underlaydirs => [ + $basedir . '/content', + ], + underlaydir => $basedir . '/basewiki_da', # display verbose messages when building? #verbose => 1, # log to syslog? @@ -87,7 +84,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 @@ -127,16 +124,6 @@ use IkiWiki::Setup::Standard { # virus checker program (reads STDIN, returns nonzero if virus found) #virus_checker => 'clamdscan -', - # bzr plugin - # bzr post-commit hook to generate - #bzr_wrapper => '', - # mode for bzr_wrapper (can safely be made suid) - #bzr_wrappermode => '06755', - # url to show file history, using loggerhead ([[file]] substituted) - #historyurl => '', - # url to view a diff, using loggerhead ([[file]] and [[r2]] substituted) - #diffurl => 'http://example.org/revision?start_revid=[[r2]]#[[file]]-s', - # calendar plugin # base of the archives hierarchy #archivebase => 'archives', @@ -147,9 +134,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-da', + #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://' . $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 @@ -183,16 +170,6 @@ use IkiWiki::Setup::Standard { # enable multimarkdown features? #multimarkdown => 0, - # mercurial plugin - # mercurial post-commit hook to generate - #mercurial_wrapper => '', - # mode for mercurial_wrapper (can safely be made suid) - #mercurial_wrappermode => '06755', - # url to hg serve'd repository, to show file history ([[file]] substituted) - #historyurl => 'http://example.org:8000/log/tip/[[file]]', - # url to hg serve'd repository, to show diff ([[file]] and [[r2]] substituted) - #diffurl => 'http://localhost:8000/?fd=[[r2]];file=[[file]]', - # mirrorlist plugin # list of mirrors #mirrorlist => {}, @@ -225,20 +202,6 @@ use IkiWiki::Setup::Standard { # path to the omega cgi program #omega_cgi => '/usr/lib/cgi-bin/omega/omega', - # svn plugin - # subversion repository location - #svnrepo => '/svn/wiki', - # path inside repository where the wiki is located - #svnpath => 'trunk', - # svn post-commit hook to generate - #svn_wrapper => '/svn/wikirepo/hooks/post-commit', - # mode for svn_wrapper (can safely be made suid) - #svn_wrappermode => '04755', - # viewvc url to show file history ([[file]] substituted) - #historyurl => 'http://svn.example.org/trunk/[[file]]', - # viewvc url to show a diff ([[file]], [[r1]], and [[r2]] substituted) - #diffurl => 'http://svn.example.org/trunk/[[file]]?root=wiki&r1=[[r1]]&r2=[[r2]]', - # tag plugin # parent page tags are located under #tagbase => 'tag', @@ -257,16 +220,6 @@ use IkiWiki::Setup::Standard { # LaTeX postfix for teximg plugin #teximg_postfix => '\\end{document}', - # tla plugin - # tla post-commit hook to generate - #tla_wrapper => '', - # mode for tla_wrapper (can safely be made suid) - #tla_wrappermode => '06755', - # url to show file history ([[file]] substituted) - #historyurl => '', - # url to show a diff ([[file]] and [[rev]] substituted) - #diffurl => '', - # typography plugin # Text::Typography attributes value #typographyattributes => '3', @@ -276,4 +229,11 @@ use IkiWiki::Setup::Standard { #websetup_force_plugins => [], # show unsafe settings, read-only, in web interface? #websetup_show_unsafe => 1, + + # varioki plugin (strings are eval'ed: double-quote actual strings!) + #varioki => { + # 'branding_logo_text' => '"Example Website"', + # 'branding_logo' => '"logo.png"', + # 'branding_logo_tagline' => '"Yet another ikiwiki site!"', + #}, } |