lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject [lucene-site] branch master updated: tweak regex for refguide/javadocs so it works with 2digit versions (e.g., 4_10_0). Also comine javadocs into one.
Date Sat, 04 Jan 2020 14:37:07 GMT
This is an automated email from the ASF dual-hosted git repository.

uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fa9933  tweak regex for refguide/javadocs so it works with 2digit versions (e.g.,
4_10_0). Also comine javadocs into one.
3fa9933 is described below

commit 3fa9933b276897f89525c61301d9e4e2da863b85
Author: Uwe Schindler <uschindler@apache.org>
AuthorDate: Sat Jan 4 15:36:54 2020 +0100

    tweak regex for refguide/javadocs so it works with 2digit versions (e.g., 4_10_0). Also
comine javadocs into one.
---
 content/.htaccess | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/content/.htaccess b/content/.htaccess
index 2202d78..a041adc 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -121,6 +121,5 @@ RedirectMatch Permanent ^/lucy/(.*)$ https://lucy.apache.org/
 ### Javadocs & Solr Refguide
 # __root/docs.lucene.apache.org/content/ is a special alias added by INFRA-19439, so we can
refer to stuff in other places like SVN
 
-RewriteRule ^core/(\d_\d_\d\b.*$) __root/docs.lucene.apache.org/content/core/$1 [PT]
-RewriteRule ^solr/(\d_\d_\d\b.*$) __root/docs.lucene.apache.org/content/solr/$1 [PT]
-RewriteRule ^solr/guide/(\d_\d\b.*$) __root/docs.lucene.apache.org/content/solr/guide/$1
[PT]
+RewriteRule ^(core|solr)/(\d\d?_\d\d?_\d\d?\b.*$) __root/docs.lucene.apache.org/content/$1/$2
[PT]
+RewriteRule ^solr/guide/(\d\d?_\d\d?\b.*$) __root/docs.lucene.apache.org/content/solr/guide/$1
[PT]


Mime
View raw message