Skip to content

A link checker: this site on pull requests, the organisation's READMEs every week - #91

Merged
martin-henz merged 2 commits into
mainfrom
ci/link-checker
Nov 28, 2026
Merged

martin-henz merged 2 commits into
mainfrom
ci/link-checker

Conversation

@martin-henz

@martin-henz martin-henz commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

For #27. A crawl of https://about.sourceacademy.org and this site found 35 non-200 links, of which five were real dead links in our own pages (fixed in source-academy/about#61, merged), so this makes the check permanent for this site.

  • .github/workflows/links.yml: on every pull request and push to main, and every Monday (the pages that this site links to can disappear without a change here), builds the site and runs lychee over the built HTML and this README. A dead link fails the check.
  • lychee.toml: 403 and 429 are accepted, because doi.org, npmjs.com and mitpress.mit.edu refuse automated clients (19 of the 35); placeholder hosts in examples are excluded; the language documentation under /javascript and /python is excluded, since other repositories publish it.
  • Actions are pinned by commit, as in the other workflows.

The READMEs of the organisation's repositories are not checked here: that is the monthly scan's new links check (#92). An earlier version of this pull request had a weekly job for them; it is removed so that one thing does the job.

Not tested locally: I could not run lychee on my machine, so the settings are untested. This is a draft: the first run of the site job on this pull request is the test. If it reports links that are not dead (for example root-relative links that it cannot resolve in dist), the exclusions in lychee.toml need adjusting before this is merged.

🤖 Generated with Claude Code

Order: merge #92 (the monthly scan's links check) first: the comment in links.yml and the README say that the READMEs of the other repositories are checked there.

martin-henz and others added 2 commits November 28, 2026 13:00
…isation's READMEs weekly (docs#27)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ly scan

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@martin-henz
martin-henz marked this pull request as ready for review November 28, 2026 05:17
@martin-henz

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T05:21:11.043324Z e0c194d Manual request
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0c194d3bf

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,36 @@
# Dead links in this site and in this repository's README (docs#27): a broken link in a change fails the check.
# The READMEs of the organisation's other repositories are checked by the monthly scan (tools/org-health).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore an organization-wide README link check

When a link in another Source Academy repository's README dies, no job now checks it: the site job passes only dist/**/*.html and this repository's README.md to lychee (.github/workflows/links.yml:32-35), while tools/org-health/scan.py:34-45,144-146 only checks whether a README exists. This comment therefore points to nonexistent coverage; add link validation to the monthly scan or retain a separate organization-README job.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

True for this branch on its own: the coverage of the other repositories' READMEs is the links check of the monthly scan in #92, which is not merged yet. I kept the comment, because that is where the check belongs (the weekly job here was a duplicate that I removed on purpose), and made the order explicit instead: merge #92 first, then this one. I added that to the description of this pull request. No code change.

@martin-henz
martin-henz merged commit c190b29 into main Nov 28, 2026
8 checks passed
@martin-henz
martin-henz deleted the ci/link-checker branch November 28, 2026 05:32
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