You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2012/10/31 20:56:07 UTC
svn commit: r1404321 - /cayenne/site/cms/trunk/lib/path.pm
Author: aadamchik
Date: Wed Oct 31 19:56:07 2012
New Revision: 1404321
URL: http://svn.apache.org/viewvc?rev=1404321&view=rev
Log:
splitting legacy regex for readability
Modified:
cayenne/site/cms/trunk/lib/path.pm
Modified: cayenne/site/cms/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/cayenne/site/cms/trunk/lib/path.pm?rev=1404321&r1=1404320&r2=1404321&view=diff
==============================================================================
--- cayenne/site/cms/trunk/lib/path.pm (original)
+++ cayenne/site/cms/trunk/lib/path.pm Wed Oct 31 19:56:07 2012
@@ -2,9 +2,19 @@ package path;
use ASF::Value;
our @patterns = (
+
+ # Website pages
[qr!\.mdtext$!, single_narrative => { template => "markdown.html" }],
- [qr!^/doc[0-9]{0,2}/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
- [qr!^/doc[0-9]{0,2}/(?\!api/).*\.html$!, single_narrative => { template => "legacy_confluence.html" }],
+
+ # Legacy javadocs
+ [qr!^/doc12/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
+ [qr!^/doc20/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
+ [qr!^/doc30/api/.*\.html$!, single_narrative => { template => "apidocs.html" }],
+
+ # Legacy docs
+ [qr!^/doc12/(?\!api/).*\.html$!, single_narrative => { template => "legacy_confluence.html" }],
+ [qr!^/doc20/(?\!api/).*\.html$!, single_narrative => { template => "legacy_confluence.html" }],
+ [qr!^/doc30/(?\!api/).*\.html$!, single_narrative => { template => "legacy_confluence.html" }],
) ;