You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by ww...@apache.org on 2022/08/25 05:31:30 UTC

[yunikorn-site] branch master updated: [YUNIKORN-1293] Add custom redirects to the current version doc (#180)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new b745b72ae [YUNIKORN-1293] Add custom redirects to the current version doc (#180)
b745b72ae is described below

commit b745b72ae619f8b30b4befa87c7762f59f269dbe
Author: Weiwei Yang <ww...@apache.org>
AuthorDate: Wed Aug 24 22:31:25 2022 -0700

    [YUNIKORN-1293] Add custom redirects to the current version doc (#180)
---
 docusaurus.config.js | 13 +++++++++++++
 package.json         |  1 +
 2 files changed, 14 insertions(+)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 04cb8a71b..c4b450718 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -36,6 +36,19 @@ module.exports = {
       },
     },
   },
+  plugins: [
+    [
+      '@docusaurus/plugin-client-redirects',
+      {
+        redirects: [
+          {
+            to: '/docs/1.0.0',
+            from: '/docs/',
+          },
+        ],
+      },
+    ],
+  ],
   presets: [
     [
       '@docusaurus/preset-classic',
diff --git a/package.json b/package.json
index a5ac5ba74..e3b42a34f 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,7 @@
   },
   "dependencies": {
     "@docusaurus/core": "2.0.1",
+    "@docusaurus/plugin-client-redirects": "^2.0.1",
     "@docusaurus/preset-classic": "2.0.1",
     "@docusaurus/theme-search-algolia": "^2.0.1",
     "@mdx-js/react": "^1.5.8",