+);
+
+if ($ENV{"IKIWIKI_PREVIEW_OUTPUT"}) {
+
+ my $self_path = $IkiWiki::config{'setupfile'};
+ use File::Basename;
+ my $git_root = dirname($self_path);
+ use File::Spec::Functions;
+
+ %setup_args = (
+ %common_setup_args,
+ srcdir => catdir($git_root, "wiki"),
+ destdir => $ENV{"IKIWIKI_PREVIEW_OUTPUT"},
+ url => 'http://sipb.mit.edu',
+ templatedir => catdir($ENV{"IKIWIKI_SHARE"}, 'templates'),
+ underlaydir => catdir($ENV{"IKIWIKI_SHARE"}, 'basewiki'),
+ );
+} else {
+%setup_args = (
+ %common_setup_args,
+ # where the source of the wiki is located
+ srcdir => '/afs/sipb.mit.edu/project/sipb-www/ikiwiki/src',
+ # where to build the wiki
+ destdir => '/afs/sipb.mit.edu/project/sipb-www/Scripts/wiki',
+ # base url to the wiki
+ url => 'http://sipb.mit.edu',
+ # url to the ikiwiki.cgi
+ cgiurl => 'https://sipb.mit.edu:444/ikiwiki.cgi',
+ # filename of cgi wrapper to generate
+ cgi_wrapper => '/afs/sipb.mit.edu/project/sipb-www/Scripts/wiki-cgi/ikiwiki.cgi',
+ # mode for cgi_wrapper (can safely be made suid)
+ cgi_wrappermode => '06755',
+ # rcs backend to use
+ rcs => 'git',
+ # location of template files
+ templatedir => '/mit/sipb-www/share/ikiwiki/templates',
+ # base wiki source location
+ underlaydir => '/mit/sipb-www/share/ikiwiki/basewiki',
+
+ # git plugin
+ # git hook to generate
+ git_wrapper => '/mit/sipb-www/wiki.git/hooks/post-update-wiki',
+ # mode for git_wrapper (can safely be made suid)
+ #git_wrappermode => '06755',
+ # git pre-receive hook to generate
+ #git_test_receive_wrapper => '/git/wiki.git/hooks/pre-receive',
+ # unix users whose commits should be checked by the pre-receive hook
+ #untrusted_committers => [],
+ # gitweb url to show file history ([[file]] substituted)
+ historyurl => '/cgit/cgit.cgi/wiki/log/[[file]]',
+ # gitweb url to show a diff ([[file]], [[sha1_to]], [[sha1_from]], [[sha1_commit]], and [[sha1_parent]] substituted)
+ diffurl => '/cgit/cgit.cgi/wiki/diff/?id=[[sha1_commit]]',
+ # where to pull and push changes (set to empty string to disable)
+ #gitorigin_branch => 'origin',
+ # branch that the wiki is stored in
+ #gitmaster_branch => 'master',
+);