You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d06c2e7
Browse filesBrowse the repository at this point in the historyBrowse files
Link check: known script-refusing hosts listed as checked by hand; Evidence licence pages fetched (#89)
- site/config.json linkCheck.manualHosts lists the 17 hosts that refused
the checker every week in #77; their entries move from "Refused" to a
collapsed "Checked by hand" list with the entry's verified date
- the URLs quoted in each entry's ## Evidence are fetched too (once
each), and a licence page that no longer loads is its own counted section
- lib/link-check.mjs manualHostReason and evidenceUrls, with tests
Not done from the issue: no retry with browser-like headers (the checker
does not pose as a browser to get past a site's bot blocking), and no
"only when changed" diffing of the refused list. Not run live here; the
weekly workflow exercises it.
Closes#89
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpkeXQPaUhxjgqdqnk6BrJ
Copy file name to clipboardExpand all lines: site/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ Script options:
213
213
| Command | Options |
214
214
| --- | --- |
215
215
|`node site/build.mjs`|`--clean` empties `site/dist` first (otherwise only changed files are written) |
216
-
|`node site/check-links.mjs`|`--report <file.md>` writes the report to a file; `--stale-days <n>` (365) flags entries verified longer ago. Set `GITHUB_TOKEN`: without it the archived-repository checks hit GitHub's anonymous API limit and report "Could not check" |
216
+
|`node site/check-links.mjs`|`--report <file.md>` writes the report to a file; `--stale-days <n>` (365) flags entries verified longer ago. Set `GITHUB_TOKEN`: without it the archived-repository checks hit GitHub's anonymous API limit and report "Could not check" It also fetches the licence pages quoted in each entry's Evidence and reports one that no longer loads. Entries on hosts in `site/config.json` → `linkCheck.manualHosts` (hosts that refuse scripts every week) are listed as checked by hand with their verified date, not as refused. |
|`node site/thumbs.mjs`|`--only <id,id>` limits the run to those entries; `--force` refetches records that are not due; `--limit <n>` caps fetches per run; `--dry-run` writes nothing; `--report <file.md>`|
219
219
|`node site/serve.mjs`|`--port <n>`, or the `PORT` environment variable (3000) |
`<details><summary>Checked by hand (${byHand.length}): hosts that refuse scripts (site/config.json linkCheck), last read on the verified date</summary>`,
"_comment": "Hosts that refuse scripted requests whatever the source's health (403/429 every week in the link report, #77). check-links lists their entries under 'Checked by hand' with the entry's verified date instead of 'Refused'. Remove a host when it starts answering.",
12
+
"manualHosts": {
13
+
"fab.com": "Fab answers scripts with 403; read listings in a browser",
eq("evidence urls: in order, once, without trailing punctuation",evidenceUrls(ev).join(" "),"https://x.test/licence https://github.com/o/r/blob/main/LICENSE");
eq(`config manual host ${host} is a bare lower-case host with a reason`,/^[a-z0-9.-]+\.[a-z]+$/.test(host)&&!host.startsWith("www.")&&reason.length>0,true);
0 commit comments