You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2024/02/07 14:33:18 UTC
(cloudstack-www) branch staging-site updated: multiple redirects from html to dir style (#148)
This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch staging-site
in repository https://gitbox.apache.org/repos/asf/cloudstack-www.git
The following commit(s) were added to refs/heads/staging-site by this push:
new 78b293126 multiple redirects from html to dir style (#148)
78b293126 is described below
commit 78b2931263293b7d916dd942775505ebddd95df3
Author: dahn <da...@onecht.net>
AuthorDate: Wed Feb 7 15:33:14 2024 +0100
multiple redirects from html to dir style (#148)
* multiple redirects from html to dir style
* more generic redirect
---
docusaurus.config.js | 10 +++++++++-
package.json | 1 +
static/.htaccess | 1 -
yarn.lock | 15 +++++++++++++++
4 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 3282a07e7..4795b5395 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -15,7 +15,15 @@ const config = {
favicon: 'img/favicon.ico',
plugins: [
- ['docusaurus-plugin-sass', {}],
+ [
+ 'docusaurus-plugin-sass',
+ {},
+ ],[
+ '@docusaurus/plugin-client-redirects',
+ {
+ fromExtensions: ['html', 'htm'], // /myPage.html -> /myPage
+ },
+ ],
],
presets: [
diff --git a/package.json b/package.json
index e0f0e1e69..d05c6c837 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
},
"dependencies": {
"@docusaurus/core": "^2.3.1",
+ "@docusaurus/plugin-client-redirects": "2.3.1",
"@docusaurus/preset-classic": "^2.3.1",
"@easyops-cn/docusaurus-search-local": "^0.27.0",
"@mdx-js/react": "^1.6.22",
diff --git a/static/.htaccess b/static/.htaccess
deleted file mode 100644
index 9f81e3520..000000000
--- a/static/.htaccess
+++ /dev/null
@@ -1 +0,0 @@
-Redirect 301 /downloads.html /downloads/
diff --git a/yarn.lock b/yarn.lock
index 90f5b2533..c61025961 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1376,6 +1376,21 @@
react-helmet-async "*"
react-loadable "npm:@docusaurus/react-loadable@5.5.2"
+"@docusaurus/plugin-client-redirects@2.3.1":
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-2.3.1.tgz#e75f373ef19032b0d059c0298f86d6cb18575ef6"
+ integrity sha512-Ye0z36/L8685ni0DIxHqPPaHIXFXiSF90QYiYfpODBX6NxvvveUTyylsDBU1GQhPXPn1bd39QgaOuZ+j9gfaog==
+ dependencies:
+ "@docusaurus/core" "2.3.1"
+ "@docusaurus/logger" "2.3.1"
+ "@docusaurus/utils" "2.3.1"
+ "@docusaurus/utils-common" "2.3.1"
+ "@docusaurus/utils-validation" "2.3.1"
+ eta "^2.0.0"
+ fs-extra "^10.1.0"
+ lodash "^4.17.21"
+ tslib "^2.4.0"
+
"@docusaurus/plugin-content-blog@2.3.1":
version "2.3.1"
resolved "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.3.1.tgz"