Skip to content

Commit

Permalink
Added redirect plugin
Browse files Browse the repository at this point in the history
The Docusaurus client redirect plugin was added to the configuration.

In addition to the plugin, the redirect from `customizing` to `custom-install` pages (both on current and next) have been created.

Signed-off-by: Nuno do Carmo [email protected]
  • Loading branch information
nunix authored and davidcassany committed Jul 22, 2024
1 parent b32f18a commit c49fd78
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
20 changes: 19 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,25 @@ const config = {
locales: ['en'],
},

presets: [
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/custom-install',
from: '/customizing',
},
{
to: '/next/custom-install',
from: '/next/customizing',
},
],
},
],
],

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@algolia/client-search": "^4.22.1",
"@docusaurus/core": "^3.1.1",
"@docusaurus/plugin-client-redirects": "^3.1.1",
"@docusaurus/plugin-client-redirects": "3.1.1",
"@docusaurus/plugin-google-gtag": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^3.0.1",
Expand Down
12 changes: 10 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@
react-helmet-async "*"
react-loadable "npm:@docusaurus/[email protected]"

"@docusaurus/plugin-client-redirects@^3.1.1":
"@docusaurus/[email protected]":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.1.1.tgz#73feb15c2f3fe292d618f8a81e5194142f982ddb"
integrity sha512-J/1Z75XkO+BmUXHW17FrCIYZQ3b0IKaJECH6yCxW5RQ8NMMJ+SZCtPtx5oYoAd0VHersNiUu+ZAxfOqbsn1jKQ==
Expand Down Expand Up @@ -1499,7 +1499,7 @@
"@docusaurus/theme-search-algolia" "3.1.1"
"@docusaurus/types" "3.1.1"

"@docusaurus/[email protected]", "react-loadable@npm:@docusaurus/[email protected]":
"@docusaurus/[email protected]":
version "5.5.2"
resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
Expand Down Expand Up @@ -6931,6 +6931,14 @@ react-loadable@^5.5.0:
dependencies:
prop-types "^15.5.0"

"react-loadable@npm:@docusaurus/[email protected]":
version "5.5.2"
resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce"
integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ==
dependencies:
"@types/react" "*"
prop-types "^15.6.2"

react-router-config@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/react-router-config/-/react-router-config-5.1.1.tgz#0f4263d1a80c6b2dc7b9c1902c9526478194a988"
Expand Down

0 comments on commit c49fd78

Please sign in to comment.