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
Phases 1, 2, and 4 (PR #32) added pre-commit hooks for image compression, a size cap, and code quality. There is no hook that verifies image references resolve. The dibs-web01 rot (separate issue) is exactly the failure mode this would catch.
Proposal
A small Python script run as a local hook in .pre-commit-config.yaml:
For each staged *.html and *.md, scan for <img src="..."> and  references.
For relative paths: verify the target exists in the repo.
For external URLs: HEAD with a short timeout; fail on 4xx/5xx (with the same conservative accept list as lychee).
Skip data URIs and template Liquid expressions like {{ site.url }}/....
Mirror in CI so contributors who skip the local install still get caught.
Activity
Merge pull request #39 from pearsonlab/claude/issue-34-broken-image-c…
Remove committed screenshots; gitignore docs/screenshots/