diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-04 18:51:26 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-04 18:51:26 +0000 |
commit | 642f73a39fa5249e01b384cda24e44bfb805e971 (patch) | |
tree | bdc6fc39b8241d1798a8ce1dc45f1a0483a412b8 /IkiWiki.pm | |
parent | 0e8d8be117c3d10690208b1d75513c5cdd34ad4a (diff) | |
download | ikiwiki-642f73a39fa5249e01b384cda24e44bfb805e971.tar ikiwiki-642f73a39fa5249e01b384cda24e44bfb805e971.tar.gz |
dirname, basename, bestlink, linkify, pagetitle, titlepage.
* Allow links of the form [[some page|page]], with whitespace in the link
text.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 960d26de9..6a62d9f0e 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -9,6 +9,42 @@ use HTML::Template; use vars qw{%config %links %oldlinks %oldpagemtime %pagectime %renderedfiles %pagesources %depends %hooks}; +sub defaultconfig () { #{{{ + wiki_file_prune_regexp => qr{((^|/).svn/|\.\.|^\.|\/\.|\.html?$|\.rss$)}, + wiki_link_regexp => qr/\[\[(?:([^\]\|]+)\|)?([^\s\]]+)\]\]/, + wiki_processor_regexp => qr/\[\[(\w+)\s+([^\]]*)\]\]/, + wiki_file_regexp => qr/(^[-[:alnum:]_.:\/+]+$)/, + verbose => 0, + wikiname => "wiki", + default_pageext => ".mdwn", + cgi => 0, + rcs => 'svn', + notify => 0, + url => '', + cgiurl => '', + historyurl => '', + diffurl => '', + anonok => 0, + rss => 0, + sanitize => 1, + rebuild => 0, + refresh => 0, + getctime => 0, + wrapper => undef, + wrappermode => undef, + svnrepo => undef, + svnpath => "trunk", + srcdir => undef, + destdir => undef, + templatedir => "/usr/share/ikiwiki/templates", + underlaydir => "/usr/share/ikiwiki/basewiki", + setup => undef, + adminuser => undef, + adminemail => undef, + plugin => [qw{inline}], + headercontent => '', +} #}}} + sub checkconfig () { #{{{ if ($config{cgi} && ! length $config{url}) { error("Must specify url to wiki with --url when using --cgi\n"); |