Skip to content

docs: use Shields.io for the docs badge - #232

Merged
uniqueg merged 1 commit into
devfrom
fix/docs-badge-shields
Oct 24, 2026
Merged

uniqueg merged 1 commit into
devfrom
fix/docs-badge-shields

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Replaces the Read the Docs badge in README.md with the Shields.io Read the Docs badge, https://img.shields.io/readthedocs/cloud-registry. Follow-up of #230, which did not fix the badge.

Root cause: GitHub's image proxy (camo) gets HTTP 429 from Read the Docs and answers with a 502 ("Invalid upstream response (429)"), so the badge breaks on GitHub while the URL works in a browser. The Shields.io badges in the same README render fine. Without a version path segment, the Shields.io badge shows the build status of the default version, as before, and keeps the status colour (no ?color=). The link target (cloud-registry.readthedocs.io/en/latest/) is unchanged. This was the only use of the RTD badge URL in the repository.

Feather lane (maintainer decision 2026-10-24): one-line URL change, no reviewer subagents, no wait for Sourcery or Copilot; merge once CI passes with no open conversations.

Verification

  • curl https://img.shields.io/readthedocs/cloud-registry: SVG "docs: passing"
  • pre-commit run --files README.md: passed
  • mkdocs build --strict: passed
  • CI: all checks passed (push-only image jobs skipped); after merge, the camo URL of the badge in the rendered README returns 200 with an SVG "docs: passing"

Open questions

None.

Closes #229

🤖 Generated with Claude Code

GitHub's image proxy (camo) gets HTTP 429 from Read the Docs and
answers with a 502, so the Read the Docs badge does not render on
GitHub. Use the Shields.io Read the Docs badge instead, which shows the
build status of the default version. The link target is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review October 24, 2026 14:57
@sourcery-ai

sourcery-ai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR makes a focused README-only documentation reliability fix by routing the Read the Docs status badge through Shields.io, avoiding the upstream HTTP 429/Camo 502 failure without changing the destination or badge semantics.

File-Level Changes

Change Details Files
Replace the direct Read the Docs badge endpoint with a Shields.io-backed endpoint to avoid GitHub image-proxy failures while preserving the existing documentation status and link behavior.
  • Update the README badge image URL to https://img.shields.io/readthedocs/cloud-registry.
  • Keep the badge link target pointing to the latest Read the Docs documentation.
  • Verify the README formatting and strict MkDocs build remain valid.
README.md

Assessment against linked issues

Issue Objective Addressed Explanation
#229 Make the README documentation badge render reliably on GitHub instead of intermittently failing. ✅
#229 Keep the badge showing the documentation build status for the project's default version. ✅

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5a3c5fc) to head (19a8a07).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #232   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        16           
  Lines         1362      1362           
=========================================
  Hits          1362      1362           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg merged commit 0f4ce97 into dev Oct 24, 2026
19 checks passed
@uniqueg
uniqueg deleted the fix/docs-badge-shields branch October 24, 2026 15:04
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.

docs: fix the docs badge URL

1 participant