You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/24 21:22:42 UTC
svn commit: r1581035 - /thrift/cms-site/trunk/lib/path.pm
Author: joes
Date: Mon Mar 24 20:22:42 2014
New Revision: 1581035
URL: http://svn.apache.org/r1581035
Log:
reflow
Modified:
thrift/cms-site/trunk/lib/path.pm
Modified: thrift/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1581035&r1=1581034&r2=1581035&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Mon Mar 24 20:22:42 2014
@@ -5,11 +5,11 @@ use strict;
use warnings;
my %thrift_args = (
- conf => Load(join "", <DATA>), # make YAML __DATA__ below available in conf argument
- preprocess => 1, # generally enable template preprocessing of .md files
- repo => 'thrift.git', # set snippet default git repo
- template => 'default.html', # set common template argument (mainly for .md files)
- snippet_footer => # append this string to every generated snipppet block
+ conf => Load(join "", <DATA>), # make YAML __DATA__ below available in conf argument
+ preprocess => 1, # enable template preprocessing of .md files
+ repo => 'thrift.git', # set snippet default git repo
+ template => 'default.html', # set common template argument (mainly for .md files)
+ snippet_footer=> # append this string to every generated snipppet block
q(<p>This snippet was generated by {{ conf.title }}'s
<strong>source tree docs</strong>:
<a href="{{ $snippet.uri }}"</a>{{ $snippet.path }}</a>
@@ -20,28 +20,30 @@ my %thrift_args = (
our @patterns = (
[qr!^/sitemap\.html$!, offline => { %thrift_args,
- view => 'sitemap',
- headers => { title => "Sitemap" },
- nest => 1,
+ view => 'sitemap',
+ headers => { title => "Sitemap" },
+ nest => 1,
}],
[qr!^/index\.html$!, snippet => { %thrift_args,
- view => [qw/news_page/],
- headers => { title => "Home" },
+ view => [qw/news_page/],
+ headers => { title => "Home" },
}],
[qr!/index\.html$!, offline => { %thrift_args,
- view => 'sitemap',
- headers => { title => "Index" }, # "Index" is magical with the sitemap view
+ view => 'sitemap',
+ headers => { title => "Index" }, # "Index" is magical with the sitemap view
}],
[qr!^/test/!, snippet => { %thrift_args,
- view => [qw/reconstruct trim_local_link_extensions single_narrative/],
- snippet_footer => # these are full pages not simply snippets
+ view => [qw/reconstruct trim_local_link_extensions single_narrative/],
+
+ snippet_footer => # these are full pages not simply snippets
q(<p>This page was generated by {{ conf.title }}'s
<strong>source tree docs</strong>:
<a href="{{ $snippet.uri }}"</a>{{ $snippet.path }}</a>
</p>),
+
}],
[qr/\.md(?:text)?$/, snippet => { %thrift_args,
- view => [qw/single_narrative/],
+ view => [qw/single_narrative/],
}],
);