Conversation
Previously the output only showed file:line and the broken anchor name,
leaving the user to open both files to figure out what to change.
Now each error shows:
- the source line containing the broken link
- the broken anchor name and target file
- all available anchors in the target file
Example:
docs/admin/page.md:25
[See setup](overview.md#setup-the-agent)
#setup-the-agent not found in docs/admin/overview.md
Available: #overview · #install-the-agent · #configure-the-agent
Also fixes the error count in vale-autofix.yml, which used wc -l on the
error output — now inflated by the extra lines per error. Both count sites
now parse the "Found N" summary line from the script instead.
Generated with AI
Co-Authored-By: Claude Code <ai@netwrix.com>
Previously the script only checked anchors — broken file links were silently skipped with "Docusaurus's job". Now it also reports links to .md/.mdx files that don't exist on disk, caught at commit time rather than at build time. Non-markdown paths (images, PDFs, other assets) and external URLs are still skipped; they're either Docusaurus's responsibility or not resolvable locally. Generated with AI Co-Authored-By: Claude Code <ai@netwrix.com>
--staged mode only grepped for .md files, silently skipping .mdx source files. Changed grep pattern to .mdx? to cover both. Also updated two summary lines that still said "anchor links" after the script was extended to check broken file links as well. Generated with AI Co-Authored-By: Claude Code <ai@netwrix.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.