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/18 21:47:34 UTC
svn commit: r1579033 - in /thrift/cms-site/trunk: content/docs.md lib/path.pm
Author: joes
Date: Tue Mar 18 20:47:34 2014
New Revision: 1579033
URL: http://svn.apache.org/r1579033
Log:
port from dir_wrapper to deps_wrapper
Modified:
thrift/cms-site/trunk/content/docs.md
thrift/cms-site/trunk/lib/path.pm
Modified: thrift/cms-site/trunk/content/docs.md
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/content/docs.md?rev=1579033&r1=1579032&r2=1579033&view=diff
==============================================================================
--- thrift/cms-site/trunk/content/docs.md (original)
+++ thrift/cms-site/trunk/content/docs.md Tue Mar 18 20:47:34 2014
@@ -2,9 +2,9 @@
title: "Documentation"
---
<ul>
-{% for item in dir %}
+{% for item in deps %}
<li>
- <a href="{{ item.0 }}">{{ item.1 }}</a>
+ <a href="{{ item.0 }}">{{ item.1.headers.title }}</a>
</li>
{% endfor %}
</ul>
Modified: thrift/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1579033&r1=1579032&r2=1579033&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Tue Mar 18 20:47:34 2014
@@ -10,11 +10,10 @@ my %memo; # maintain a page generation c
our $runners = 1; # maximize memoization impact
our @patterns = (
- [qr!^/docs\.md(?:text)?$!, dir_wrapper => {
+ [qr!^/docs\.md(?:text)?$!, deps_wrapper => {
conf => $conf,
template => 'default.html',
view => 'single_narrative',
- dir => "/docs/", # trailing slash required
memo => \%memo,
}],
[qr!^/sitemap\.html$!, sitemap => {
@@ -39,7 +38,7 @@ find({ wanted => sub {
}, no_chdir => 1 }, cwd() . "/content");
our %dependencies = (
- "/docs.md" => [ grep s/^content//, glob "content/docs/*" ],
+ "/docs.md" => [ grep s/^content//, glob "content/docs/*.md", glob "content/docs/*/index.md" ],
"/sitemap.html" => \@mdfiles,
);