Have you read the Contributing Guidelines on issues?
Prerequisites
Description
We are using the @docusaurus/plugin-client-redirects plugins, and it seems that when migrating all docusaurus elements to 3.1.1 some redirects are not made properly leading to docusaurus raising an error for broken links.
Reproducible demo
No response
Steps to reproduce
tests with 3.1.1
- checkout the
https://github.com/axel7083/podman-desktop/tree/deps/docusaurus-3-1-1 branch
- cd to
website
- yarn install
- yarn run build
tests with 3.0.0
Repeat the previous step with any commit prior to podman-desktop/podman-desktop@a8f5a93 (e.g. podman-desktop/podman-desktop@8a823fe)
Expected behavior
I am expected the build to be successful, as it is when using 3.0.0.
Actual behavior
Error: Unable to build website for locale en.
at tryToBuildLocale (C:\Users\axels\Documents\github\redhat\podman-desktop\node_modules\@docusaurus\core\lib\commands\build.js:55:19)
at async mapAsyncSequential (C:\Users\axels\Documents\github\redhat\podman-desktop\node_modules\@docusaurus\utils\lib\jsUtils.js:44:24)
at async Command.build (C:\Users\axels\Documents\github\redhat\podman-desktop\node_modules\@docusaurus\core\lib\commands\build.js:82:21) {
[cause]: Error: Docusaurus found broken links!
Please check the pages of your site in the list below, and make sure you don't reference any path that does not exist.
Note: it's possible to ignore broken links with the 'onBrokenLinks' Docusaurus configuration, and let the build pass.
Exhaustive list of all broken links found:
- Broken link on source page path = /docs/compose/running-compose:
-> linking to /docs/onboarding-for-containers/installing-podman
- Broken link on source page path = /docs/containers:
-> linking to /docs/containers/registries/authenticating-to-a-preconfigured-registry
-> linking to /docs/containers/registries/insecure-registry
- Broken link on source page path = /docs/proxy/using-a-proxy:
-> linking to /docs/compose/compose-spec
/docs/onboarding-for-containers/installing-podman must be redirected to /docs/podman/installing (installing.md exists)
/docs/containers/registries/authenticating-to-a-preconfigured-registry to /docs/containers/registries (registries is a folder with an index.md in it)
/docs/compose/compose-spec to /docs/compose (compose is a folder with an index.md in it)
Your environment
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
We are using the
@docusaurus/plugin-client-redirectsplugins, and it seems that when migrating all docusaurus elements to 3.1.1 some redirects are not made properly leading to docusaurus raising an error for broken links.Reproducible demo
No response
Steps to reproduce
tests with 3.1.1
https://github.com/axel7083/podman-desktop/tree/deps/docusaurus-3-1-1branchwebsitetests with 3.0.0
Repeat the previous step with any commit prior to podman-desktop/podman-desktop@a8f5a93 (e.g. podman-desktop/podman-desktop@8a823fe)
Expected behavior
I am expected the build to be successful, as it is when using 3.0.0.
Actual behavior
/docs/onboarding-for-containers/installing-podmanmust be redirected to/docs/podman/installing(installing.md exists)/docs/containers/registries/authenticating-to-a-preconfigured-registryto/docs/containers/registries(registries is a folder with an index.md in it)/docs/compose/compose-specto/docs/compose(compose is a folder with an index.md in it)Your environment
Self-service