You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ur...@apache.org on 2022/02/17 03:14:13 UTC

[pulsar-site] branch main updated: feat: update

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

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


The following commit(s) were added to refs/heads/main by this push:
     new b08ac74  feat: update
b08ac74 is described below

commit b08ac745820ea01e5d15bf9667ddbfd27c58b772
Author: LiLi <li...@lili.local>
AuthorDate: Thu Feb 17 11:13:52 2022 +0800

    feat: update
    
    Signed-off-by: LiLi <li...@lili.local>
---
 site2/website-next/docusaurus.config.js | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/site2/website-next/docusaurus.config.js b/site2/website-next/docusaurus.config.js
index 3109b66..399d4cc 100644
--- a/site2/website-next/docusaurus.config.js
+++ b/site2/website-next/docusaurus.config.js
@@ -365,6 +365,11 @@ module.exports = {
           ],
         },
         {
+          href: "https://pulsar.staged.apache.org/",
+          label: "Old Website",
+          position: "right",
+        },
+        {
           href: "https://github.com/apache/pulsar",
           label: "GitHub",
           position: "right",
@@ -422,6 +427,29 @@ module.exports = {
       "@docusaurus/plugin-client-redirects",
       {
         fromExtensions: ["md"],
+        // redirects: [
+        //   // /docs/oldDoc -> /docs/newDoc
+        //   {
+        //     to: "/docs/newDoc",
+        //     from: "/docs/oldDoc",
+        //   },
+        //   // Redirect from multiple old paths to the new path
+        //   {
+        //     to: "/docs/newDoc2",
+        //     from: ["/docs/oldDocFrom2019", "/docs/legacyDocFrom2016"],
+        //   },
+        // ],
+        // createRedirects(existingPath) {
+        //   if (existingPath.includes("/standalone/")) {
+        //     return [
+        //       existingPath.replace("/en/", "/").replace("/standalone/", "/"),
+        //     ];
+        //   }
+        //   if (existingPath.includes("/en/")) {
+        //     return [existingPath.replace("/en/", "/")];
+        //   }
+        //   return undefined;
+        // },
       },
     ],
     "./postcss-tailwind-loader",