This is an automated email from the ASF dual-hosted git repository.
luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 0b4ee2805cd (feat) add docs redirects (#288)
0b4ee2805cd is described below
commit 0b4ee2805cdf4e8b307d91e42eb5f410cbdca157
Author: Jeffrey <[email protected]>
AuthorDate: Fri Aug 11 15:54:55 2023 +0800
(feat) add docs redirects (#288)
---
docusaurus.config.js | 21 +++++++++++++++++----
package.json | 1 +
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 4b643b2c02c..6e010195f28 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -108,6 +108,19 @@ const config = {
],
},
],
+ [
+ '@docusaurus/plugin-client-redirects',
+ {
+ fromExtensions: ['html', 'htm'],
+ redirects: [
+ // /docs/oldDoc -> /docs/newDoc
+ {
+ from: '/docs/dev/summary/basic-summary',
+ to: '/docs/dev/get-starting/quick-start',
+ },
+ ],
+ },
+ ],
],
presets: [
[
@@ -189,7 +202,7 @@ const config = {
items: [
{ to: '/', label: 'Home', position: 'left', exact: true },
{
- type: "dropdown",
+ type: 'dropdown',
position: 'left',
label: 'Docs',
to: '/docs/dev/get-starting/what-is-apache-doris',
@@ -219,12 +232,12 @@ const config = {
// to: '/docs/dev/get-starting/',
// align: 'left',
// }
- ]
+ ],
},
{ to: '/blog', label: 'Blogs', position: 'left' },
{
label: 'Community',
- type: "dropdown",
+ type: 'dropdown',
to: '/community/join-community',
position: 'left',
// docsPluginId: 'community',
@@ -249,7 +262,7 @@ const config = {
to: '/community/developer-guide/debug-tool',
align: 'left',
},
- ]
+ ],
},
{ to: '/users', label: 'User Stories', position: 'left' },
{
diff --git a/package.json b/package.json
index a915ff85339..22a8fbf23e8 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
},
"dependencies": {
"@docusaurus/core": "^2.4.1",
+ "@docusaurus/plugin-client-redirects": "^2.4.1",
"@docusaurus/plugin-pwa": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@easyops-cn/docusaurus-search-local": "^0.30.2",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]