mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 18:18:42 -05:00
[PR #1552] [MERGED] fix(links): suppress link-rot tracker noise + remove gitignored .claude link #8260
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1552
Author: @profvjreddi
Created: 4/26/2026
Status: ✅ Merged
Merged: 4/26/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/link-rot-tracker-noise📝 Commits (1)
460d385fix(links): suppress link-rot tracker noise + remove gitignored .claude link📊 Changes
2 files changed (+16 additions, -1 deletions)
View changed files
📝
shared/config/.lycheeignore(+15 -0)📝
slides/teaching.qmd(+1 -1)📄 Description
Two surgical fixes for the nightly link-rot tracker (#1424).
1. lycheeignore — suppress confirmed false positives
Add two patterns to
shared/config/.lycheeignore:JS template-literal residue
When Lychee parses a
.qmdcontaining JavaScript with template literals likehttps://github.com/\${m.github}, the literal is URL-encoded as\$%7B…%7Dand reported as broken — but it is never a real URL (it is substituted at runtime). Pattern:^https?://[^/]+/[^?#\s]*\$%7B[A-Za-z_][A-Za-z0-9_]*\.[A-Za-z_][A-Za-z0-9_]*%7DGitHub avatar URLs
https://github.com/<user>.png?size=Nreturns 200 in a browser but Lychee regularly returns transient 4xx/timeout against these (avatar HEAD throttling). I manually verifiedprofvjreddi.png?size=96,Mjrovai.png?size=96, etc. all return 200. Pattern:^https://github\.com/[A-Za-z0-9][A-Za-z0-9-]*\.png(\?size=\d+)?\$Together these cover the 8 remaining "broken" Unified Site URLs reported by #1424 that aren't actual failures.
2. slides/teaching.qmd — remove gitignored
.claudelinkLine 94 had:
```markdown
2. Follow the SVG style guide for colors and typography
```
The
.claude/directory is gitignored in this repo, so the URL 404s. Replaced with plain prose mentioning the SVG style guide.Out of scope
The 329
tinyMLx/courseware/raw/master/edX/...links inslides/that 404 against real-but-different file numbers in the upstream repo. That's a content question (upload missing PDFs / switch repos / remove links) requiring strategic input.Test plan
${m.github}is JS source code insite/about/people.qmd, not authored URL🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.