Repository navigation
Flag relative and .mdx internal links on changed lines - #3137
Open
ElliotFriend wants to merge 1 commit into
Open
ElliotFriend wants to merge 1 commit into
ElliotFriend wants to merge 1 commit into
Conversation
Adds scripts/check-link-style.mjs, run by the pre-commit hook on staged lines and by CI on the lines a PR adds. Existing links are left for the section-by-section conversion.
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
Author
|
/triage |
Contributor
|
🤖 Automated message from the Stellar Triage Bot. Reviewing because @ElliotFriend asked with /triage. This edits What I checked
|
This branch was successfully deployed
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.
What
scripts/check-link-style.mjsflags internal links that aren't root-relative, or that end in.md/.mdx. It checks Markdown links and images, reference-style definitions, andhrefattributes, and skips external URLs, anchors, and code.checksCI job (lines the PR adds or changes, so checkout now fetches two commits).pnpm check:link-style --all <path>lists every violation in a section, for the conversion PRs.Why
The conversion to root-relative links will take several PRs, and this keeps new relative links out in the meantime. It also catches
.mdxin reference definitions, whichmint broken-linkspasses but Mintlify emits as-is, so those links 404.Known limitations