This is an automated email from the ASF dual-hosted git repository.
ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git
The following commit(s) were added to refs/heads/master by this push:
new 474519be4 Allow new docs layout
474519be4 is described below
commit 474519be4b1287cbeb3c79ef9262012430a769af
Author: Nikita Timofeev <[email protected]>
AuthorDate: Wed Apr 10 17:09:25 2024 +0400
Allow new docs layout
---
src/main/site/static/.htaccess | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/site/static/.htaccess b/src/main/site/static/.htaccess
index 915f2da8d..05b183968 100644
--- a/src/main/site/static/.htaccess
+++ b/src/main/site/static/.htaccess
@@ -43,11 +43,11 @@ Redirect permanent /legacy-ant-documentation-export.html /
##################################################
# Redirect main sections of Cayenne Guide
-RedirectMatch permanent
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part1.html$
/docs/$1/cayenne-guide/#object-relational-mapping-with-cayenne
-RedirectMatch permanent
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part2.html$
/docs/$1/cayenne-guide/#cayenne-framework
-RedirectMatch permanent
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part3.html$
/docs/$1/cayenne-guide/#cayenne-framework-remote-object-persistence
-RedirectMatch permanent
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part4.html$
/docs/$1/cayenne-guide/#db-first-flow
-RedirectMatch permanent
^/docs/([0-9\.]+)/cayenne-guide/cayenne-guide-part5.html$
/docs/$1/cayenne-guide/#cayenne-additional-modules
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part1.html$
/docs/$1/cayenne-guide/#object-relational-mapping-with-cayenne
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part2.html$
/docs/$1/cayenne-guide/#cayenne-framework
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part3.html$
/docs/$1/cayenne-guide/#cayenne-framework-remote-object-persistence
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part4.html$
/docs/$1/cayenne-guide/#db-first-flow
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/cayenne-guide/cayenne-guide-part5.html$
/docs/$1/cayenne-guide/#cayenne-additional-modules
# Tutorial
RedirectMatch permanent ^/docs/([0-9\.]+)/tutorial/getting-started-part1.html$
/docs/$1/getting-started-guide/#setting-up-the-environment
RedirectMatch permanent ^/docs/([0-9\.]+)/tutorial/getting-started-part2.html$
/docs/$1/getting-started-guide/#learning-mapping-basics
@@ -63,8 +63,8 @@ RedirectMatch permanent
^/docs/([0-9\.]+)/tutorial-rop/getting-started-rop-part1
RedirectMatch permanent
^/docs/([0-9\.]+)/tutorial-rop/getting-started-rop-part2.html$
/docs/$1/getting-started-rop/#remote-object-persistence-quick-start
# Redirect all except index.html to exclude cyclic redirection
-RedirectMatch permanent ^/docs/([0-9\.]+)/cayenne-guide/(?!index)(.*)\.html$
/docs/$1/cayenne-guide/#$2
-RedirectMatch permanent ^/docs/([0-9\.]+)/upgrade-guide/(?!index)(.*)\.html$
/docs/$1/upgrade-guide/#$2
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/cayenne-guide/(?!index)(.*)\.html$
/docs/$1/cayenne-guide/#$2
+RedirectMatch permanent
^/docs/([1-3]\.[0-9]+)/upgrade-guide/(?!index)(.*)\.html$
/docs/$1/upgrade-guide/#$2
# Redirect everything else
RedirectMatch permanent ^/docs/([0-9\.]+)/tutorial/(.*)\.html$
/docs/$1/getting-started-guide/\#$2