Have you read the Contributing Guidelines on issues?
Prerequisites
Description
Hello,
I am currently working through our https://docs.pact.io site and we had a number of broken links.
We have now set onBrokenLinks to true, which causes the build the fail. 👍🏾
however as noted in the docs
The broken links detection is only available for a production build (docusaurus build).
I would love to give my contributors earlier feedback, during development as per to onDuplicateRoutes
By default, it displays a warning after you run yarn start or yarn build.
when they run yarn start.
I haven't looked at the codebase, to see the rational for this only being applicable for production builds at the moment.
Thanks in advance and also for the great project!
Reproducible demo
No response
Steps to reproduce
- Have a broken link in your docusaurus site
- set
onBrokenLinks to error
- run
yarn start and user is not notified there are broken links
- run
yarn build and build fails with user notified of broken links
Expected behavior
- Have a broken link in your docusaurus site
- set
onBrokenLinks to error
- run
yarn start and build fails with user notified of broken links
- run
yarn build and build fails with user notified of broken links
Actual behavior
- Have a broken link in your docusaurus site
- set
onBrokenLinks to error
- run
yarn start and user is not notified there are broken links
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
Hello,
I am currently working through our https://docs.pact.io site and we had a number of broken links.
We have now set
onBrokenLinksto true, which causes the build the fail. 👍🏾however as noted in the docs
I would love to give my contributors earlier feedback, during development as per to
onDuplicateRouteswhen they run
yarn start.I haven't looked at the codebase, to see the rational for this only being applicable for production builds at the moment.
Thanks in advance and also for the great project!
Reproducible demo
No response
Steps to reproduce
onBrokenLinkstoerroryarn startand user is not notified there are broken linksyarn buildand build fails with user notified of broken linksExpected behavior
onBrokenLinkstoerroryarn startand build fails with user notified of broken linksyarn buildand build fails with user notified of broken linksActual behavior
onBrokenLinkstoerroryarn startand user is not notified there are broken linksYour environment
Self-service