docs: add urls redirects (#1581)
This commit is contained in:
parent
aedfd522d7
commit
8a98542aa4
|
@ -24,6 +24,12 @@ const config = {
|
|||
indexPages: false,
|
||||
},
|
||||
],
|
||||
[
|
||||
"@docusaurus/plugin-client-redirects",
|
||||
{
|
||||
redirects: require("./redirects"),
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
i18n: {
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
"dependencies": {
|
||||
"@cmfcmf/docusaurus-search-local": "^0.10.0",
|
||||
"@docusaurus/core": "^2.0.0-beta.18",
|
||||
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.18",
|
||||
"@docusaurus/preset-classic": "^2.0.0-beta.18",
|
||||
"@mdx-js/react": "^1.6.21",
|
||||
"clsx": "^1.1.1",
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
module.exports = [
|
||||
{
|
||||
to: "/docs",
|
||||
from: ["/documentation/", "/manual/", "/manual/about-this-manual/"],
|
||||
},
|
||||
{
|
||||
to: "/docs/admin-manual/backup",
|
||||
from: ["/manual/backing-up-the-server/", "/docs/backing-up-the-server"],
|
||||
},
|
||||
{
|
||||
to: "/docs/admin-manual/setup/install",
|
||||
from: ["/install"],
|
||||
},
|
||||
{
|
||||
to: "/docs/admin-manual/setup/upgrade",
|
||||
from: ["/manual/upgrading/", "/docs/upgrading"],
|
||||
},
|
||||
{
|
||||
to: "/docs/admin-manual/troubleshooting",
|
||||
from: ["/manual/troubleshooting/", "/docs/troubleshooting"],
|
||||
},
|
||||
];
|
|
@ -1521,6 +1521,21 @@
|
|||
"@types/react-router-dom" "*"
|
||||
react-helmet-async "*"
|
||||
|
||||
"@docusaurus/plugin-client-redirects@^2.0.0-beta.18":
|
||||
version "2.0.0-beta.18"
|
||||
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-2.0.0-beta.18.tgz#575e55853dbe5398d59f3dbbe92e7ec05db1613d"
|
||||
integrity sha512-Hx2Tz/suK+0hNEuxOAokF1NMpd5vKnpTHENnVXJ9poSOFMFipudyht6Yjcrscar4wW971K2lBfX03lh8mNBQtg==
|
||||
dependencies:
|
||||
"@docusaurus/core" "2.0.0-beta.18"
|
||||
"@docusaurus/logger" "2.0.0-beta.18"
|
||||
"@docusaurus/utils" "2.0.0-beta.18"
|
||||
"@docusaurus/utils-common" "2.0.0-beta.18"
|
||||
"@docusaurus/utils-validation" "2.0.0-beta.18"
|
||||
eta "^1.12.3"
|
||||
fs-extra "^10.0.1"
|
||||
lodash "^4.17.21"
|
||||
tslib "^2.3.1"
|
||||
|
||||
"@docusaurus/plugin-content-blog@2.0.0-beta.18":
|
||||
version "2.0.0-beta.18"
|
||||
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.0.0-beta.18.tgz#95fe3dfc8bae9bf153c65a3a441234c450cbac0a"
|
||||
|
|
Loading…
Reference in New Issue