Skip to content

README: load the docs badge through shields.io - #425

Merged
thirtytwobits merged 1 commit into
mainfrom
readme-docs-badge-shields
Oct 26, 2026
Merged

thirtytwobits merged 1 commit into
mainfrom
readme-docs-badge-shields

Conversation

@thirtytwobits

Copy link
Copy Markdown
Member

The "Documentation Status" badge still shows as a broken image on GitHub after #421, but it works everywhere else.

Cause: GitHub loads README images through its camo proxy. For the Read the Docs badge URL, camo returns 502 Invalid upstream response (429). Read the Docs is rate-limiting the proxy, and this failed 5 times out of 5. Fetched directly, the same URL returns the SVG. Read the Docs also sends cache-control: no-store on the badge, so camo can't cache it and has to fetch it again for every view.

Fix: use the shields.io Read the Docs badge, https://img.shields.io/readthedocs/nunavut/latest.svg, which matches the README's other shields.io badges. The badge's link target (nunavut.readthedocs.io) is unchanged.

Checked: I rendered this branch's README through the GitHub API and fetched the badge's camo URL three times. Each fetch returned 200 image/svg+xml, showing "docs: passing".

🤖 Generated with Claude Code

GitHub's image proxy gets 429 Too Many Requests from Read the Docs, so
the docs badge shows as a broken image on GitHub only. Read the Docs
also marks the badge no-store, so the proxy can't cache it. Use the
shields.io Read the Docs badge, like the README's other badges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@thirtytwobits
thirtytwobits merged commit 34d0149 into main Oct 26, 2026
65 checks passed
@thirtytwobits
thirtytwobits deleted the readme-docs-badge-shields branch October 26, 2026 02:26
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