You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2023/01/13 08:40:29 UTC

[pulsar-site] branch main updated (6ad6454c904 -> adf178d0bee)

This is an automated email from the ASF dual-hosted git repository.

tison pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


    from 6ad6454c904 Use server side redirection: BUILD_ALL_VERSION=1 (#382)
     new 019d810f603 Clean rewrite rules
     new 44c804ad1c6 Avoid regenerate all for new version out
     new adf178d0bee Rebuild: BUILD_ALL_VERSION=1

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docusaurus.config.js |  9 ++++++---
 static/.htaccess     | 10 ++++------
 2 files changed, 10 insertions(+), 9 deletions(-)


[pulsar-site] 03/03: Rebuild: BUILD_ALL_VERSION=1

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit adf178d0beeaf43555ec599489912a8ccbe47dff
Author: tison <wa...@gmail.com>
AuthorDate: Fri Jan 13 16:40:17 2023 +0800

    Rebuild: BUILD_ALL_VERSION=1
    
    Signed-off-by: tison <wa...@gmail.com>


[pulsar-site] 01/03: Clean rewrite rules

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 019d810f603823a1f8b5447bd50ca92c66ef234f
Author: tison <wa...@gmail.com>
AuthorDate: Fri Jan 13 15:57:15 2023 +0800

    Clean rewrite rules
    
    Signed-off-by: tison <wa...@gmail.com>
---
 static/.htaccess | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/static/.htaccess b/static/.htaccess
index 7d831ca7447..065dce262fa 100755
--- a/static/.htaccess
+++ b/static/.htaccess
@@ -4,14 +4,8 @@ RewriteRule "^en/(.+)$" "/$1" [R=301,DPI,L]
 RewriteRule "^docs/en/(.+)$" "/docs/$1" [R=301,DPI,L]
 RewriteRule "^docs/(zh-CN|zh-TW|ja|ko|fr)/(.+)$" "/$1/docs/$2" [R=301,DPI,L]
 RewriteRule "^(zh-CN|zh-TW|ja|ko|fr)/docs/(.+)$" "/docs/$2" [R=301,DPI,L]
-
-RewriteRule "^docs/?$" "/docs/2.11.x" [R=301,DPI,L]
 RewriteRule "^docs/(.+)-incubating/(.+)$" "https://pulsar.staged.apache.org/docs/$1-incubating/$2" [R=301,DPI,L]
 
-RewriteRule "^pulsar-manager-release-notes(/)?$" "/release-notes" [R=301,DPI,L]
-RewriteRule "^coding-guide(/)?$" "/contribute/develop-coding-conventions/" [R=301,DPI,L]
-RewriteRule "^contributing(/)?$" "/contribute/" [R=301,DPI,L]
-
 # skip if file exists
 RewriteCond %{REQUEST_FILENAME}\/index\.html -f
 RewriteRule ^ - [L]
@@ -28,3 +22,7 @@ RewriteRule "^docs/(.+/)?develop-binary-protocol/?$" "/docs/$1developing-binary-
 RewriteRule "^docs/(.+/)?administration-dashboard/?$" "/docs/$1administration-pulsar-manager" [R=301,DPI,L]
 RewriteRule "^docs/(.+/)?security-tls-keystore/?$" "/docs/$1security-tls-authentication" [R=301,DPI,L]
 RewriteRule "^docs/(.+/)?security-policy-and-supported-versions/?$" "/contribute/version-policy" [R=301,DPI,L]
+
+RewriteRule "^coding-guide/?$" "/contribute/develop-coding-conventions" [R=301,DPI,L]
+RewriteRule "^contributing/?$" "/contribute" [R=301,DPI,L]
+RewriteRule "^pulsar-manager-release-notes/?$" "/release-notes" [R=301,DPI,L]


[pulsar-site] 02/03: Avoid regenerate all for new version out

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 44c804ad1c651d110353fdcf0262a22bf4ac5394
Author: tison <wa...@gmail.com>
AuthorDate: Fri Jan 13 16:34:57 2023 +0800

    Avoid regenerate all for new version out
    
    Signed-off-by: tison <wa...@gmail.com>
---
 docusaurus.config.js | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 67a6eb0f7a3..04a0885ab1c 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -161,11 +161,13 @@ module.exports = {
                     position: "right",
                     items: [
                         {
-                            to: `/docs/${versions[0]}/concepts-overview/`,
+                            type: 'doc',
+                            docId: 'concepts-overview',
                             label: "Pulsar Concepts",
                         },
                         {
-                            to: `/docs/${versions[0]}/`,
+                            type: 'doc',
+                            docId: 'about',
                             label: "Quickstart",
                         },
                         {
@@ -175,7 +177,8 @@ module.exports = {
                     ],
                 },
                 {
-                    to: `/docs/${versions[0]}/`,
+                    type: 'doc',
+                    docId: 'about',
                     position: "right",
                     label: "Docs",
                 },