zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1063794 - in /zookeeper/site/trunk/lib: path.pm view.pm
Date Wed, 26 Jan 2011 16:57:06 GMT
Author: breed
Date: Wed Jan 26 16:57:06 2011
New Revision: 1063794

URL: http://svn.apache.org/viewvc?rev=1063794&view=rev
Log:
fixed to compile textile instead of markdown

Modified:
    zookeeper/site/trunk/lib/path.pm
    zookeeper/site/trunk/lib/view.pm

Modified: zookeeper/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/lib/path.pm?rev=1063794&r1=1063793&r2=1063794&view=diff
==============================================================================
--- zookeeper/site/trunk/lib/path.pm (original)
+++ zookeeper/site/trunk/lib/path.pm Wed Jan 26 16:57:06 2011
@@ -5,14 +5,14 @@ use ASF::Value;
 
 our @patterns = (
 
-    [qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
+    [qr!\.textile$!, single_narrative => { template => "single_narrative.html" }],
 );
 
 
 # for specifying interdependencies between files
 
 #our %dependencies = (
-#    "/dev/sitemap.html" => [ grep s!^content!!, glob "content/dev/*.mdtext" ],
+#    "/dev/sitemap.html" => [ grep s!^content!!, glob "content/dev/*.textile" ],
 #);
 
 1;

Modified: zookeeper/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/zookeeper/site/trunk/lib/view.pm?rev=1063794&r1=1063793&r2=1063794&view=diff
==============================================================================
--- zookeeper/site/trunk/lib/view.pm (original)
+++ zookeeper/site/trunk/lib/view.pm Wed Jan 26 16:57:06 2011
@@ -28,7 +28,7 @@ sub single_narrative {
     my %args = @_;
     my $file = "content$args{path}";
     my $template = $args{template};
-    $args{path} =~ s/\.mdtext$/\.html/;
+    $args{path} =~ s/\.textile$/\.html/;
     $args{breadcrumbs} = breadcrumbs($args{path});
 
     read_text_file $file, \%args;
@@ -36,8 +36,8 @@ sub single_narrative {
     my $page_path = $file;
     $page_path =~ s/\.[^.]+$/.page/;
     if (-d $page_path) {
-        for my $f (grep -f, glob "$page_path/*.mdtext") {
-            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+        for my $f (grep -f, glob "$page_path/*.textile") {
+            $f =~ m!/([^/]+)\.textile$! or die "Bad filename: $f\n";
             $args{$1} = {};
             read_text_file $f, $args{$1};
         }
@@ -56,7 +56,7 @@ sub sitemap {
     opendir my $dh, $dir or die "Can't opendir $dir: $!\n";
     my %data;
     for (map "$dir/$_", grep $_ ne "." && $_ ne ".." && $_ ne ".svn", readdir
$dh) {
-        if (-f and /\.mdtext$/) {
+        if (-f and /\.textile$/) {
             my $file = $_;
             $file =~ s/^content//;
             no warnings 'once';
@@ -65,7 +65,7 @@ sub sitemap {
                 next unless $file =~ $re;
                 my $s = view->can($method) or die "Can't locate method: $method\n";
                 my ($content, $ext, $vars) = $s->(path => $file, %$args);
-                $file =~ s/\.mdtext$/.$ext/;
+                $file =~ s/\.textile$/.$ext/;
                 $data{$file} = $vars;
                 last;
             }



Mime
View raw message