Skip to content

Links: lychee on the built site in CI, and the live site nightly (sc-9611) - #265

Open
ndbroadbent wants to merge 2 commits into
ci-limitsfrom
ci-links
Open

ndbroadbent wants to merge 2 commits into
ci-limitsfrom
ci-links

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Ninth PR for sc-9611: link checks with lychee 0.24.2 (pinned in mise.toml, settings in lychee.toml). It's stacked on #264.

In CI (blocking): the clients job, right after site.mjs builds the production site.

  • lychee --offline checks every page, file and #anchor the site links to: 7,339 links on 71 pages.
  • The site's absolute https://visualci.com/... links are remapped onto the build, so they get checked too.
  • Pages are folders, so index_files = ["index.html"] resolves them. Without it, lychee reported 114 false "missing anchor" errors.
  • Offline, so an outside site that's down never fails a build or holds back a deploy.

Nightly (Audit workflow, new links job; schedule and dispatch only): lychee over every page in the live sitemap.xml, outside links included. GITHUB_TOKEN keeps its github.com checks inside the rate limit.

Exclusions, each with its reason:

  • app., api. and mcp.visualci.com answer only signed-in or API requests.
  • GitHub's #readme anchor is built by JavaScript, so it's stripped before the check.

It starts green:

  • The offline check finds 0 errors. A planted missing page, a missing anchor and a broken absolute visualci.com anchor each fail.
  • The live run today finds one broken anchor, /docs/gallery/#choose-whats-public. The current source no longer links it, so the next deploy fixes it before the first nightly run matters.

actionlint and zizmor are clean.


Run Proof on this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… pages no longer excluded, http and www links remapped; ci.md's template link in code (review)

This branch has not been deployed

No deployments
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