CLI command to run docusaurus validations
Sebastian Balay
Whenever there is a broken link in my docs, I see some warnings in the output of the run command:
warn Docs markdown link couldn't be resolved: (./doc1.md) in /Users/you/project/docs/index.md for version current
It would be nice to have a CLI command to run those assertions. Could be very useful to have a CI automated check
Antoni Silvestrovič
I've also just found out that you can just pipe the errors into a file using
&>
command. I'm using this command in CI: npx docusaurus build &> status.txt
Antoni Silvestrovič
+1 for this. I had an idea of connecting it to our Slack, so we see get a message if some links become broken.