Skip to content

fix(docs): stop redirecting the migrators' Getting started pages, and check the docs' links in CI - #347

Merged
vite-hub[bot] merged 3 commits into
mainfrom
fix/migrate-getting-started-link
Nov 5, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
fix/migrate-getting-started-link

Conversation

@onmax

@onmax onmax commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Reported on X: Migrate → Getting started in the docs sidebar goes nowhere.

Cause

The Worker's MERGED redirect in docs/server/utils/site.ts sends 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

  • MERGED leaves *-to-comark packages 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 in docs/dist/public through 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.
  • It found a second bug: the skill-card stills on /skills/ strip heading ids but kept the # anchors and footnote links, which pointed at nothing (19 links). stillOf now drops them too.

Checked

  • Built docs: 539 pages, no broken links.
  • With the MERGED fix reverted, the checker reports 88 links that the Worker redirects, including the one from the report.
  • vp check and pnpm typecheck pass.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-04T09:22:14.225006Z
We couldn’t complete this review. Comment @codex review to try again.
78413aa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vite-hub

vite-hub Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Completed 2026-11-05T06:03:21.056Z 3m 15s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for GitHub merge request e2e2b449-1c54-4ca7-899e-7210bb1ac462.

View session

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-comark migrators.
  • 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

Comment thread docs/links.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@347

comark-badge

pnpm add https://pkg.pr.new/comark-badge@347

comark-cards

pnpm add https://pkg.pr.new/comark-cards@347

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@347

comark-cast

pnpm add https://pkg.pr.new/comark-cast@347

comark-charts

pnpm add https://pkg.pr.new/comark-charts@347

comark-chat

pnpm add https://pkg.pr.new/comark-chat@347

comark-chips

pnpm add https://pkg.pr.new/comark-chips@347

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@347

comark-code

pnpm add https://pkg.pr.new/comark-code@347

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@347

comark-colors

pnpm add https://pkg.pr.new/comark-colors@347

comark-comments

pnpm add https://pkg.pr.new/comark-comments@347

comark-critic

pnpm add https://pkg.pr.new/comark-critic@347

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@347

comark-details

pnpm add https://pkg.pr.new/comark-details@347

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@347

comark-diff

pnpm add https://pkg.pr.new/comark-diff@347

comark-embed

pnpm add https://pkg.pr.new/comark-embed@347

comark-fields

pnpm add https://pkg.pr.new/comark-fields@347

comark-figure

pnpm add https://pkg.pr.new/comark-figure@347

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@347

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@347

comark-github

pnpm add https://pkg.pr.new/comark-github@347

comark-icon

pnpm add https://pkg.pr.new/comark-icon@347

comark-include

pnpm add https://pkg.pr.new/comark-include@347

comark-keys

pnpm add https://pkg.pr.new/comark-keys@347

comark-links

pnpm add https://pkg.pr.new/comark-links@347

comark-linter

pnpm add https://pkg.pr.new/comark-linter@347

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@347

comark-mark

pnpm add https://pkg.pr.new/comark-mark@347

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@347

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@347

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@347

comark-media

pnpm add https://pkg.pr.new/comark-media@347

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@347

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@347

comark-outline

pnpm add https://pkg.pr.new/comark-outline@347

comark-properties

pnpm add https://pkg.pr.new/comark-properties@347

comark-qr

pnpm add https://pkg.pr.new/comark-qr@347

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@347

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@347

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@347

comark-sources

pnpm add https://pkg.pr.new/comark-sources@347

comark-steps

pnpm add https://pkg.pr.new/comark-steps@347

comark-table

pnpm add https://pkg.pr.new/comark-table@347

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@347

comark-tests

pnpm add https://pkg.pr.new/comark-tests@347

comark-time

pnpm add https://pkg.pr.new/comark-time@347

comark-ui

pnpm add https://pkg.pr.new/comark-ui@347

comark-xref

pnpm add https://pkg.pr.new/comark-xref@347

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@347

commit: fbcd550

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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.svg Nitro 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.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@vite-hub
vite-hub Bot merged commit 705fca5 into main Nov 5, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the fix/migrate-getting-started-link branch November 5, 2026 06:11
@github-actions github-actions Bot mentioned this pull request Nov 5, 2026
@github-actions github-actions Bot mentioned this pull request Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant