cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1404321 - /cayenne/site/cms/trunk/lib/path.pm
Date Wed, 31 Oct 2012 19:56:07 GMT
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"
}],
 ) ;
 
 



Mime
View raw message