]> sipb.mit.edu Git - sipb-www.git/blobdiff - ikiwiki.setup
Enable color plugin
[sipb-www.git] / ikiwiki.setup
index 81df5cf47a8456977f74b71331f8f862621039d2..3078450b287e3c52814e6787ccf652de11fd3c18 100644 (file)
@@ -23,7 +23,7 @@ my %common_setup_args = (
        # IMPORTANT! If you add plugins that involve interface changes, you
        # will need to modify our templates to allow this, as our custom
        # template does not support them yet. See ~/src/ikiwiki/templates
-       add_plugins => [qw(goodstuff html httpauth rename remove)],
+       add_plugins => [qw(goodstuff html httpauth rename remove 404 attachment color)],
        # plugins to disable
        # IMPORTANT! If you reenable passwordauth/openid, you need to
        # do some modifications described in TODO.SIPB in the source-tree
@@ -83,9 +83,9 @@ my %common_setup_args = (
 
        # attachment plugin
        # enhanced PageSpec specifying what attachments are allowed
-       #allowed_attachments => 'virusfree() and mimetype(image/*) and maxsize(50kb)',
+       allowed_attachments => 'virusfree() and (mimetype(image/*) or mimetype(application/pdf)) and maxsize(10000kb)',
        # virus checker program (reads STDIN, returns nonzero if virus found)
-       #virus_checker => 'clamdscan -',
+       virus_checker => 'clamscan -',
 
        # calendar plugin
        # base of the archives hierarchy
@@ -208,7 +208,7 @@ if ($ENV{"IKIWIKI_PREVIEW_OUTPUT"}) {
 
   %setup_args = (
                 %common_setup_args,
-                srcdir => catdir($self_path, "wiki"),
+                srcdir => catdir($git_root, "wiki"),
                 destdir => $ENV{"IKIWIKI_PREVIEW_OUTPUT"},
                 url => 'http://sipb.mit.edu',
                 templatedir => catdir($ENV{"IKIWIKI_SHARE"}, 'templates'),