Repository navigation
fix(docs): ignore link-shaped text in inline code spans without hiding real links - #493
Merged
Merged
Conversation
bketelsen
approved these changes
Nov 6, 2026
5 tasks done
bketelsen
pushed a commit
to frostyard/core
that referenced
this pull request
Nov 6, 2026
The docs gates of core, updex and std now ignore link-shaped text inside an inline code span (#216, frostyard/updex#493, frostyard/std#99), so the vendored Go skills no longer need the split `X[T]`(`v`) form. Restore upstream's single code span in golang-error-handling, golang-safety and golang-modernize/references/versions.md, drop the 3 marked override comments, and drop the Code spans entry from the overrides list. Closes #201. Co-authored-by: frostyard-machines <[email protected]>
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.
Summary
scripts/check-docs.mjschecks the links of every Markdown file, the skills that frostyard/core syncs into.agents/skills/too. It read link-shaped text inside inline code as a link: a Go generic call in a code span, such aserrors.AsType[T](err), failed the gate. Because of this, core splits 3 such calls in the synced Go skills (golang-error-handling,golang-safety,golang-modernize/references/versions.md) and cannot remove the split until every consumer gate reads code spans (frostyard/core#201).This PR copies core's code-span rule (frostyard/core#216) verbatim: the functions
codeSpanRanges,consumedBacktickMarkerEnd,isInCodeSpanandstripWithMap, and the same change to the link loop. A link-shaped match is skipped only when its whole original range is inside a code span of a safe run of non-blank lines. A run with a|, an escaped backtick, a<with a later>, a line with an unpaired backtick run, or a](,][,www.,://or$outside every span with a later backtick keeps every link checked, so the rule never hides a real link. Fence stripping, the index check, anchors and symlinks are unchanged.scripts/test-check-docs.mjsgets every link-integrity case of core's tests: the must-fail cases (each must report-> missing.md does not resolve) and the must-pass cases.Checks
make test-docs-check: all assertions pass (the CI docs job runs it)make ciRisk tier
Rationale:
.github/risk-paths.jsonmatches.Verification
node scripts/check-docs.mjsgreen:checked: 29 docs, 553 links, 9 symlinks(same as before)err,vandvaluescripts/check-docs.mjsfrom the base and the new cases kept, 5 must-pass cases fail (Go generic calls, run-length span,<without>, CRLF, markers inside spans). The must-fail cases pass there, because the base gate checks every match.Cross-review
Reviewer: openai/gpt-6.1-sol. Coder: github-copilot/mai-code-2-flash.