Skip to content

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

Merged
uniqueg merged 3 commits into
devfrom
fix/docs-badge-shields
Oct 24, 2026
Merged

uniqueg merged 3 commits 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/foca. Follow-up of #474, 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 (foca.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/foca: 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 #473

🤖 Generated with Claude Code

uniqueg and others added 2 commits October 24, 2026 16:56
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 one-line README badge URL change from Read the Docs directly to Shields.io, avoiding GitHub image-proxy failures while preserving the existing documentation destination and default-version build-status display.

File-Level Changes

Change Details Files
Replace the unreliable Read the Docs badge image endpoint with a Shields.io Read the Docs badge while preserving the documentation link destination.
  • Update the badge image URL to https://img.shields.io/readthedocs/foca.
  • Retain the existing default-version status behavior and badge status color.
  • Leave the Read the Docs documentation target unchanged.
README.md

Assessment against linked issues

Issue Objective Addressed Explanation
#473 Fix the README documentation badge so it renders reliably on GitHub while continuing to show the default Read the Docs version's build status. ✅

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 (30b2e87) to head (4d56399).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #479   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         3444      3444           
=========================================
  Hits          3444      3444           
Flag Coverage Δ
test_unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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 d956270 into dev Oct 24, 2026
32 checks passed
@uniqueg
uniqueg deleted the fix/docs-badge-shields branch October 24, 2026 15:12
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