Skip to content

docs: fix the docs badge URL - #474

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

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

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Summary

Points the Read the Docs badge in README.md straight at https://app.readthedocs.org/projects/foca/badge/, the canonical URL in the RTD badge docs. The old readthedocs.org URL answers with a 307 redirect, on which GitHub's image proxy sometimes fails, so the badge did not always render. Without a version parameter the badge still shows the project's default version, as before (the SVG is byte-identical with and without ?version=latest). This was the only use of the old URL in the repository; links to foca.readthedocs.io are unchanged.

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 -I https://readthedocs.org/projects/foca/badge/: 307 to app.readthedocs.org; curl -I https://app.readthedocs.org/projects/foca/badge/: 200, image/svg+xml
  • pre-commit run --files README.md: passed
  • mkdocs build --strict: passed
  • CI: pending

Open questions

None.

Closes #473

🤖 Generated with Claude Code

Summary by Sourcery

Bug Fixes:

  • Update the Read the Docs badge URL to use the canonical endpoint so it renders reliably without a redirect.

Point the Read the Docs badge straight at app.readthedocs.org. The old
readthedocs.org URL answers with a 307 redirect, on which GitHub's
image proxy sometimes fails, so the badge did not always render.

Closes #473

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 24, 2026 •

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

Reviewer's Guide

Updates the README Read the Docs badge URL to the canonical app.readthedocs.org endpoint, avoiding the redirect that could cause GitHub image proxy failures while preserving the existing default-version badge behavior.

File-Level Changes

Change Details Files
Replace the Read the Docs badge endpoint with its canonical non-redirecting URL to improve reliable rendering in GitHub.
  • Updated the badge link from the legacy readthedocs.org endpoint to app.readthedocs.org.
  • Validated the endpoint response, formatting checks, and strict documentation build.
README.md

Assessment against linked issues

Issue Objective Addressed Explanation
#473 Update the README’s Read the Docs badge to use the canonical https://app.readthedocs.org/projects/<slug>/badge/ URL directly, avoiding the redirect that can prevent GitHub’s image proxy from rendering the badge. ✅

Possibly linked issues


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

@uniqueg
uniqueg marked this pull request as ready for review October 24, 2026 14:12

@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 (2cab482) to head (8c25cae).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #474   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         3446      3446           
=========================================
  Hits          3446      3446           
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 e263559 into dev Oct 24, 2026
32 checks passed
@uniqueg
uniqueg deleted the docs/fix-badge-url branch October 24, 2026 14:19
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