You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2022/09/07 03:40:20 UTC

[rocketmq-site] branch new-official-website updated: Redirect staled links to new official website (#214)

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

duhengforever pushed a commit to branch new-official-website
in repository https://gitbox.apache.org/repos/asf/rocketmq-site.git


The following commit(s) were added to refs/heads/new-official-website by this push:
     new 13e10add Redirect staled links to new official website (#214)
13e10add is described below

commit 13e10add015105c517a732788f07cce1863ae5f4
Author: Jack Tsai <ts...@outlook.com>
AuthorDate: Wed Sep 7 11:40:16 2022 +0800

    Redirect staled links to new official website (#214)
    
    Co-authored-by: tsaitsung-han.tht <ts...@alibaba-inc.com>
---
 docusaurus.config.js | 26 ++++++++++++++++++++++++++
 package.json         |  3 ++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 57c2e08e..00f2dced 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -120,6 +120,32 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
           path: "./forth-blog",
         },
       ],
+      [
+        '@docusaurus/plugin-client-redirects', {
+          redirects: [
+            {
+              from: '/downloading/release',
+              to: '/download'
+            },
+            {
+              from: '/about/contact/',
+              to: '/contact'
+            },
+            {
+              from: '/docs/rmq-arc',
+              to: '/docs/介绍/03whatis'
+            },
+            {
+              from: '/docs/motivation/',
+              to: `/docs/`
+            },
+            {
+              from: '/docs/quickstart/',
+              to: `/docs/介绍/02quickstart`
+            }
+          ]
+        }
+      ]
     ],
 
     themeConfig:
diff --git a/package.json b/package.json
index 6f193ab8..f61817b6 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
   },
   "dependencies": {
     "@docusaurus/core": "2.0.0-beta.6",
+    "@docusaurus/plugin-client-redirects": "^2.1.0",
     "@docusaurus/preset-classic": "2.0.0-beta.6",
     "@emotion/react": "^11.9.3",
     "@emotion/styled": "^11.9.3",
@@ -23,9 +24,9 @@
     "@mdx-js/react": "^1.6.21",
     "@mui/material": "^5.8.5",
     "@svgr/webpack": "^5.5.0",
-    "docusaurus": "^1.14.7",
     "animate.css": "^4.1.1",
     "clsx": "^1.1.1",
+    "docusaurus": "^1.14.7",
     "file-loader": "^6.2.0",
     "prism-react-renderer": "^1.2.1",
     "react": "^17.0.1",