Repository navigation
fix(docs): stop redirecting the migrators' Getting started pages, and check the docs' links in CI - #347
Conversation
… check the docs' links in CI
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request e2e2b449-1c54-4ca7-899e-7210bb1ac462. Ready: all supplied checks are green. Pullfrog’s badge-route finding is verified fixed and resolved. Node fixtures reproduced the historical migrator and badge failures and passed at HEAD. Focused vp lint and git diff --check passed. vp test passed three docs-link tests but also selected suites blocked by missing generated Nuxt/package outputs. No remaining actionable findings; no changes or push needed. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. Session CI reconciliation completed; the same-head repair budget is exhausted. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Important
The link checker treats a valid dynamic site route as missing, which can make docs CI fail when a live badge falls back to its hosted endpoint.
Reviewed changes in 78413aa: the migrator redirect exemption, generated-doc link validation, still-card fragment cleanup, CI wiring, and redirect coverage.
- Migrator routes: preserves the real Getting started pages for the wizard and three
*-to-comarkmigrators. - Link validation: scans generated pages for redirected, missing, and invalid-fragment same-origin links after the docs build.
- Skill stills: strips anchors whose IDs are deliberately removed from embedded document stills.
- CI and tests: adds the link check to the build job and covers the four exempted migrator paths.
gpt-5.6-sol | 𝕏
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at 78413aa: the dynamic badge-route correction, its regression coverage, and the merge from main.
- Accepted the deployed badge endpoint: exempted only the exact
/badge.svgNitro route from static-file validation while retaining redirect checks. - Added focused link-checker coverage: verified badge URLs with query parameters and preserved failures for missing pages, lookalike badge paths, redirects, and invalid fragments.
gpt-5.6-sol | 𝕏

Reported on X: Migrate → Getting started in the docs sidebar goes nowhere.
Cause
The Worker's
MERGEDredirect indocs/server/utils/site.tssends every/<pkg>/getting-started/to/<pkg>/, for the packages whose pages merged into one. The migrate wizard and the remark, markdown-it, and marked migrators still have a real Getting started page, so the sidebar link redirected away from it (/migrate-to-comark/getting-started/→ 301 →/migrate-to-comark/).Fix
MERGEDleaves*-to-comarkpackages alone, with a test for all four.docs/links.ts(pnpm docs:links, a CI step after the docs build) follows every internal link and fragment indocs/dist/publicthrough the Worker's redirects, then looks for the file and the heading id. Each problem is one sentence that names the page and the fix. I wrote it instead of adding linkinator because linkinator crawls static files and never sees the Worker's redirects, which is what broke here./skills/strip heading ids but kept the#anchors and footnote links, which pointed at nothing (19 links).stillOfnow drops them too.Checked
MERGEDfix reverted, the checker reports 88 links that the Worker redirects, including the one from the report.vp checkandpnpm typecheckpass.