-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed as not planned
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionclosed: working as intendedThis issue is intended behavior, there's no need to take any action.This issue is intended behavior, there's no need to take any action.
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
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-1branch - 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-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
- Public source code: https://github.com/axel7083/podman-desktop/tree/deps/docusaurus-3-1-1
- Public site URL: https://podman-desktop.io/
- Docusaurus version used: 3.0.0 and 3.1.1
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Brave, NodeJS 18.17.1
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionclosed: working as intendedThis issue is intended behavior, there's no need to take any action.This issue is intended behavior, there's no need to take any action.