supprimé
[cyclowiki.git] / ikiwiki.setup
index d8d619c..e6ef777 100644 (file)
@@ -6,7 +6,8 @@ BEGIN {
        use File::Spec::Functions;
        my $srcdir = dirname($IkiWiki::config{'setupfile'});
        my ($wiki, $wikiname, $git_repo, $destdir
-        , $global_sidebars, $search_db, $userdir);
+        , $global_sidebars, $search_db, $userdir,
+        , $only_committed_changes);
        if (-x "$srcdir/Public") {
                $wiki = '3615';
                $wikiname = '3615';
@@ -26,7 +27,7 @@ BEGIN {
                                and !Public/templates
                                and !Public/templates/*'
                 ];
-               $userdir = '/Public/Camarade';
+               $userdir = '/Camarade';
         }
        else {
                $wiki = 'wiki';
@@ -60,6 +61,7 @@ BEGIN {
                $umask     = 002;
                $url       = '/';
                $urls      = "https://$wiki.cyclocoop.org/";
+               $only_committed_changes = 1;
                @wrappers  =
                 ( { cgi => 1
                         , wrapper => $destdir."/cgi/ikiwiki.cgi"
@@ -81,6 +83,7 @@ BEGIN {
                $umask     = 002;
                $url       = '/';
                $urls      = '/';
+               $only_committed_changes = 0;
                @wrappers  =
                 ( { cgi => 1
                         , wrapper => $destdir."/cgi/ikiwiki.cgi"
@@ -94,6 +97,7 @@ BEGIN {
        %setup_args =
         ( ENV => {}
         , account_creation_password => $account_creation_password
+        , default_plugins => []
         , add_plugins => [qw{
                 404
                 action
@@ -101,8 +105,11 @@ BEGIN {
                 attachment
                 brokenlinks
                 comments
+                conditional
+                createpage
                 cutpaste
                 editdiff
+                editpage
                 events
                 favicon
                 img
@@ -110,10 +117,14 @@ BEGIN {
                 link
                 linkmap
                 map
+                mdwn
+                meta
                 moderatedcomments
                 orphans
                 pagecount
                 pagestats
+                pagetemplate
+                parentlinks_fixed
                 passwordauth
                 poll
                 progress
@@ -125,6 +136,7 @@ BEGIN {
                 search
                 sidebar2
                 signinedit
+                signinedit
                 table
                 tag
                 template
@@ -174,6 +186,7 @@ BEGIN {
                        Tania
                        tania
                        Thai
+                       Thomas
                        Thong
                        Tilman
                        tilman
@@ -230,15 +243,17 @@ BEGIN {
                 headinganchors
                 htmlbalance
                 htmlscrubber
+                htmltidy
                 httpauth
                 lockedit
                 more
                 openid
+                parentlinks
                 po
                 prettydate
                 shortcut
                 }]
-        , discussion => 1
+        , discussion => 0
         , discussionpage => 'Discussion'
         , edit =>
                 { cancel   => 'Annuler'
@@ -281,6 +296,7 @@ BEGIN {
         , newevent_base => 'Agenda'
         , numbacklinks => 1000
         , omega_cgi => '/usr/lib/cgi-bin/omega/omega'
+        , only_committed_changes => $only_committed_changes
         #, openid_cgiurl => ''
         #, openid_realm => ''
         #, openidsignup => 'http://myopenid.com/'
@@ -348,8 +364,8 @@ BEGIN {
         #, websetup_show_unsafe => 1
         #, websetup_unsafe => []
         , week_start_day => 1
-        , wiki_file_chars => "-[:alnum:]+/.:_'’,()«»\@"
-        , wiki_file_regexp => qr/(^[-[:alnum:]+\/.:_'’,()«»\@]+$)/
+        , wiki_file_chars => "-[:alnum:]+/.:_—'’,«»\@°!"
+        , wiki_file_regexp => qr/(^[-[:alnum:]+\/.:_—'’,«»\@°!]+$)/
         #, wiki_file_chars => '-[:alnum:]+/.:_@’()&'
         #, wrappergroup => 'ikiwiki'
         , wikiname => $wikiname