^zhurnaly   -   Random   -   Recent   -   Running   -   Mantra   -   Tarot   -   Help

InitialOddmuseInstallationNotes

To get the Oddmuse wiki up and running on 25 Dec 2007:

 #!/usr/bin/perl
 package OddMuse;
 $DataDir = '/Library/WebServer/Oddmuse';
 do 'current';
    mkdir /Library/WebServer/Oddmuse
    chmod 777 //Library/WebServer/Oddmuse
 package OddMuse;
 $SiteName  = "ZhurnalyWiki";
 $StyleSheetPage = 'ZhurnalyWikiStyleSheet';
 $LogoUrl = '/images/zh.gif';
 $CommentsPrefix = 'Comments_on_';
 $AdminPass ='****';
push(@MyRules, \&BlockQuoteRule);

sub BlockQuoteRule {
  # indented text using : with the option of spanning multiple text paragraphs (but not lists etc).
  if (InElement('blockquote') && m/\G(\s*\n)+:[ \t]*/cog) {
    return CloseHtmlEnvironmentUntil('blockquote') . AddHtmlEnvironment('p');
  } elsif ($bol && m/\G(\s*\n)*:[ \t]*/cog) {
    return CloseHtmlEnvironments() . AddHtmlEnvironment('blockquote') . AddHtmlEnvironment('p');
  }
  return undef;
}

TopicProgramming - TopicZhurnal - Datetag20071227



(correlates: 1 Comment on ZhurnalyWikiStyleSheet, Oddmuse Local, 0 Comments on HomePage, ...)