correction harmonisant les pseudos avec les adresses
[cyclowiki.git] / ikiwiki.setup
1 #!/usr/bin/perl
2 use vars qw/%setup_args/;
3
4 BEGIN {
5 use File::Basename;
6 use File::Spec::Functions;
7 my $srcdir = dirname($IkiWiki::config{'setupfile'});
8 my $sharedir = $ENV{IKIWIKI_SHARE} ? $ENV{IKIWIKI_SHARE} : '/usr/share/ikiwiki';
9 print "srcdir=$srcdir\n";
10 my ($account_creation_password);
11 my ($destdir, $sslcookie, $umask, $url, $urls, @wrappers);
12 if (-x '/home/www/data/cyclo-wiki') {
13 $destdir = '/home/www/data/cyclo-wiki';
14 $srcdir = '/home/cyclo/var/ikiwiki/cyclo-wiki/src';
15 $sslcookie = 1;
16 $umask = 002;
17 $url = '/';
18 $urls = 'https://wiki.cyclocoop.org/';
19 @wrappers =
20 ( { cgi => 1
21 , wrapper => $destdir."/cgi/ikiwiki.cgi"
22 , wrappermode => "00750"
23 }
24 , { post_commit => 1
25 , wrapper => "/home/git/hooks/cyclo/cyclo-wiki/post-update.ikiwiki"
26 , wrappermode => "06751"
27 , wrapper_background_command => ""
28 }
29 );
30 $account_creation_password = IkiWiki::readfile(catdir(dirname($srcdir), 'etc', 'account_creation_password'));
31 }
32 else {
33 $destdir = catdir(dirname($srcdir).'/www');
34 $sslcookie = 0;
35 $umask = 002;
36 $url = '/';
37 $urls = '/';
38 @wrappers =
39 ( { cgi => 1
40 , wrapper => $destdir."/cgi/ikiwiki.cgi"
41 , wrappermode => "00755"
42 }
43 );
44 $account_creation_password = '';
45 }
46 %setup_args =
47 ( ENV => {}
48 , account_creation_password => $account_creation_password
49 , add_plugins => [qw{
50 404
51 action
52 attachment
53 brokenlinks
54 calendar
55 comments
56 cutpaste
57 editdiff
58 favicon
59 htmlscrubber
60 img
61 inline
62 link
63 linkmap
64 lockedit
65 map
66 newevent
67 orphans
68 pagecount
69 pagestats
70 passwordauth
71 poll
72 progress
73 recentchanges
74 recentchangesdiff
75 remove
76 rename
77 repolist
78 search
79 sidebar2
80 table
81 tag
82 template
83 theme
84 toc
85 trail
86 userlist
87 }]
88 #, add_underlays => []
89 , adminemail => 'admin+wiki@cyclocoop.org'
90 , adminuser => [qw{
91 julm
92 }]
93 #, aggregate_webtrigger => 0
94 #, aggregateinternal => 1
95 , allow_symlinks_before_srcdir => 0
96 , allowatom => 1
97 #, allowed_attachments =>
98 # '(mimetype(image/*) and maxsize(100kb)) or
99 # (mimetype(application/pdf) and maxsize(2mb))'
100 #, allowrss => 0
101 #, anonok_pagespec => '*/Discussion or SandBox'
102 #, archive_pagespec => 'posts/* and !*/Discussion'
103 , archive_pagespec => '!*'
104 , archivebase => undef
105 , atom => 1
106 , attachment =>
107 { insert => 'Lier'
108 , rename => 'Renommer'
109 , remove => 'Détacher'
110 , upload => 'Attacher'
111 }
112 , backlinks =>
113 { map_id => 'backlink'
114 , map_tmpl => 'map-doc'
115 , page => 'backlinks'
116 , title => 'rétro-liens'
117 , tmpl => 'page.tmpl'
118 }
119 , banned_users => []
120 #, blogspam_options => 'blacklist=1.2.3.4,blacklist=8.7.6.5,max-links=10'
121 #, blogspam_pagespec => 'postcomment(*)'
122 #, blogspam_server => ''
123 #, camelcase_ignore => []
124 #, cgi_wrapper => 'cgi/ikiwiki.cgi'
125 #, cgi_wrappermode => '02750'
126 , cgiauthurl => $urls.'cgi/ikiwiki.cgi'
127 , cgiurl => $url.'cgi/ikiwiki.cgi'
128 , comments_allowauthor => 0
129 , comments_allowdirectives => 0
130 , comments_closed_pagespec => 'blog/controversial or blog/flamewar'
131 , comments_commit => 1
132 , comments_pagename => 'comment_'
133 , comments_pagespec => 'blog/* and !*/Discussion'
134 , default_file => 'default.mdwn'
135 , default_pageext => 'mdwn'
136 , destdir => $destdir
137 , diffurl => "/gitweb/?p=cyclowiki.git;a=blobdiff;f=[[file]];h=[[sha1_to]];hp=[[sha1_from]];hb=[[sha1_commit]];hpb=[[sha1_parent]]"
138 #, directive_description_dir => 'ikiwiki/directive'
139 , disable_plugins => [qw{
140 anonok
141 headinganchors
142 httpauth
143 more
144 openid
145 po
146 prettydate
147 shortcut
148 signinedit
149 toggle
150 }]
151 , discussion => 1
152 , discussionpage => 'Discussion'
153 , edit =>
154 { cancel => 'Annuler'
155 , diff => 'Comparer'
156 , location => 'Emplacement'
157 , preview => 'Apercevoir'
158 , remove => 'Supprimer'
159 , rename => 'Bouger'
160 , save => 'Sauvegarder'
161 , title => 'édition'
162 , type => 'Type'
163 }
164 , exclude => '^/etc$'
165 , external_links => qr{^(git)(/.*|$)}
166 , getsource_mimetype => 'text/plain; charset=utf-8'
167 , gitmaster_branch => "master"
168 , gitorigin_branch => "origin"
169 #, global_sidebars => '*'
170 , global_sidebars =>
171 [ "TOC", "toc", "/None"
172 , "IMAGE", "image", "/None"
173 ]
174 , hardlink => 0
175 , historyurl => "/gitweb/?p=cyclowiki.git;a=history;f=[[file]]"
176 , html5 => 1
177 , htmlext => 'html'
178 , htmlscrubber_skip => '!*/Discussion or /Ivry or /Pantin or /Paris',
179 , httpauth_pagespec => '!*/Discussion and !SandBox'
180 #, include => '^\\.htaccess$'
181 , indexpages => 0
182 , libdir => $srcdir.'/.ikiwiki/lib'
183 , locale => 'fr_FR.UTF-8'
184 , locked_pages => '!*/Discussion and !/SandBox',
185 #, mirrorlist => {}
186 #, moderate_pagespec => 'user(http://*)'
187 #, multimarkdown => 0
188 , newevent_base => 'Agenda'
189 , numbacklinks => 1000
190 , omega_cgi => '/usr/lib/cgi-bin/omega/omega'
191 #, openid_cgiurl => ''
192 #, openid_realm => ''
193 #, openidsignup => 'http://myopenid.com/'
194 , password_cost => 8
195 #, pinger_timeout => 15
196 , pingurl => []
197 , po_link_to => 'current'
198 , po_master_language => 'fr|Français'
199 , po_slave_languages =>
200 [ 'en|English'
201 , 'es|Español'
202 , 'de|Deutsch'
203 , 'it|Italiano'
204 ]
205 , po_translatable_pages => '*'
206 , prefix_directives => 1
207 #, prefsurl => "https://$ENV{site}/cgi/ikiwiki.cgi"
208 #, prettydateformat => '%X, %B %o, %Y'
209 , rcs => "git"
210 , recentchangesnum => 100
211 , recentchangespage => 'recentchanges'
212 , repositories =>
213 [ "git://git.cyclocoop.org/cyclowiki"
214 , "git\@git.cyclocoop.org:cyclowiki" ]
215 , rss => 0
216 #, rsync_command => 'rsync -qa --delete . user@host:/path/to/docroot/'
217 , search_pagespec => '* and !recentchanges/* and !templates/* and !templates'
218 , srcdir => $srcdir
219 , sslcookie => $sslcookie
220 #, syslog => 1
221 , tag =>
222 { map_id => 'backlink'
223 , map_tmpl => 'map-doc'
224 , page => 'tag'
225 , title => 'étiquette'
226 , tmpl => 'page.tmpl'
227 }
228 #, tagbase => 'tag'
229 , templatedir => catdir($sharedir, 'templates')
230 #, teximg_dvipng => ''
231 #, teximg_postfix => '\\end{document}'
232 #, teximg_prefix => '\\documentclass{article}
233 # \\usepackage{amsmath}
234 # \\usepackage{amsfonts}
235 # \\usepackage{amssymb}
236 # \\pagestyle{empty}
237 # \\begin{document}'
238 #, theme => 'actiontabs'
239 , theme => 'actiontabs'
240 , timeformat => '%c'
241 , toc =>
242 { back => '↑ '
243 , id => 'may-be-invalid'
244 }
245 #, tohighlight => '.c .h .cpp .pl .py Makefile:make'
246 , umask => $umask
247 #, underlaydir => catdir($sharedir, '.basewiki')
248 #, untrusted_committers => undef
249 , url => $url
250 , usedirs => 1
251 , userdir => 'Camarade'
252 , verbose => 1
253 #, virus_checker => 'clamdscan -'
254 #, websetup_force_plugins => []
255 #, websetup_show_unsafe => 1
256 #, websetup_unsafe => []
257 , week_start_day => 1
258 , wiki_file_chars => "-[:alnum:]+/.:_'’,()«»"
259 , wiki_file_regexp => qr/(^[-[:alnum:]+\/.:_'’,()«»]+$)/
260 #, wiki_file_chars => '-[:alnum:]+/.:_@’()&'
261 #, wrappergroup => 'ikiwiki'
262 , wikiname => 'CycloWiki'
263 , wrappers => \@wrappers
264 );
265 }
266 use IkiWiki::Setup::Standard \%setup_args;