Skip to content

ci(docs): wire test-urls.js into CI to catch broken doc links (#6333)#8686

Open
Metbcy wants to merge 1 commit into
QwikDev:mainfrom
Metbcy:fix/issue-6333-ci-link-check
Open

ci(docs): wire test-urls.js into CI to catch broken doc links (#6333)#8686
Metbcy wants to merge 1 commit into
QwikDev:mainfrom
Metbcy:fix/issue-6333-ci-link-check

Conversation

@Metbcy
Copy link
Copy Markdown

@Metbcy Metbcy commented May 30, 2026

Closes #6333.

Per @wmertens in the issue thread ("We have packages/docs/test-urls.js now but we need to put it into CI"), this PR wires the existing helper into CI. It also hardens the script to be CI-safe.

Changes

  • packages/docs/test-urls.js — rewrote to walk the local docs filesystem (deterministic, no flaky network HEAD requests). Exits non-zero on broken links so CI fails loudly.
  • packages/docs/package.json — adds "test.urls": "node test-urls.js".
  • .github/workflows/ci.yml — adds a Check Docs Links (issue #6333) step in the Build Docs job.

Verification

  • node packages/docs/test-urls.js → 41/41 pass, exit 0 locally.
  • The previously-reported /docs/routing failure in the old script was a transient github.com HEAD-request error; the target file packages/docs/src/routes/docs/(qwikcity)/routing/index.mdx exists.

Builds on the existing packages/docs/test-urls.js helper by:

- Switching it from flaky live HEAD requests to github.com over to a
  deterministic local filesystem check against
  packages/docs/src/routes (the false-positive previously reported on
  /docs/routing was a transient network error, not a real broken link).
- Making the script exit non-zero on any broken link so CI fails loudly
  when a docs page is moved/renamed without updating on-this-page.tsx.
- Adding a 'test.urls' script in packages/docs/package.json.
- Adding a 'Check Docs Links' step in .github/workflows/ci.yml (Build
  Docs job) that runs the script before pnpm build.packages.docs.

Closes QwikDev#6333
@Metbcy Metbcy requested review from a team as code owners May 30, 2026 00:16
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 30, 2026

⚠️ No Changeset found

Latest commit: dbcf785

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

[📖] check all links in docs to make sure they work

1 participant