Skip to content

docs: fix the docs badge URL - #309

Merged
uniqueg merged 2 commits into
devfrom
docs/fix-badge-url
Oct 24, 2026
Merged

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

Open questions

None.

Closes #308

🤖 Generated with Claude Code

Summary by Sourcery

Bug Fixes:

  • Fix the README documentation badge so it loads directly from the canonical Read the Docs URL without relying on redirects.

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 #308

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

sourcery-ai Bot commented Oct 24, 2026 •

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

Reviewer's Guide

The pull request makes a one-line documentation fix that points the README Read the Docs badge directly to its canonical HTTPS endpoint, preventing intermittent failures caused by GitHub's image proxy handling of the previous redirect.

File-Level Changes

Change Details Files
Update the README Read the Docs badge to use the canonical endpoint directly, avoiding redirect-dependent image loading.
  • Replace the legacy readthedocs.org badge URL with the app.readthedocs.org URL.
  • Leave the badge behavior and other documentation links unchanged.
README.md

Assessment against linked issues

Issue Objective Addressed Explanation
#308 Update the README documentation badge to use Read the Docs’ canonical app.readthedocs.org URL directly, avoiding the redirect while preserving the default-version behavior. ✅

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

@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 (9f3a08b) to head (7958cfe).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #309   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        29           
  Lines         2469      2469           
=========================================
  Hits          2469      2469           

☔ 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.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35378707 | 📁 Comparing 7958cfe against latest (bf5c0e8)

  🔍 Preview build  

2 files changed
± index.html
± contributing/index.html

@uniqueg
uniqueg merged commit 05834fd into dev Oct 24, 2026
17 checks passed
@uniqueg
uniqueg deleted the docs/fix-badge-url branch October 24, 2026 14:23
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