Repository navigation
A link checker: this site on pull requests, the organisation's READMEs every week - #91
Conversation
…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>
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 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). | |||
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
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 tomain, 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/javascriptand/pythonis excluded, since other repositories publish it.The READMEs of the organisation's repositories are not checked here: that is the monthly scan's new
linkscheck (#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
sitejob on this pull request is the test. If it reports links that are not dead (for example root-relative links that it cannot resolve indist), the exclusions inlychee.tomlneed adjusting before this is merged.🤖 Generated with Claude Code
Order: merge #92 (the monthly scan's
linkscheck) first: the comment inlinks.ymland the README say that the READMEs of the other repositories are checked there.