Skip to content

docs: fix the docs badge URL #308

Closed

Description

@uniqueg

The docs badge in the README points at https://readthedocs.org/projects/<slug>/badge/, which answers with a 307 redirect to https://app.readthedocs.org/projects/<slug>/badge/. GitHub's image proxy (camo) sometimes fails on that hop, so the badge intermittently does not render.

Fix: use the canonical badge URL from the Read the Docs badge docs, https://app.readthedocs.org/projects/<slug>/badge/, directly. Without a version parameter the badge keeps showing the project's default version, as now.

Activity

  1. added
    priority: low
    status: in progress
    type: docs
    workload: minutes
    on Oct 24, 2026
  2. removed
    status: in progress
    on Oct 24, 2026
  3. uniqueg commented on Oct 24, 2026

    @uniqueg
    MemberAuthor

    Reopening: the switch to https://app.readthedocs.org/projects/<slug>/badge/ did not fix the badge.

    Root cause: GitHub serves README images through its image proxy (camo). Read the Docs rate-limits camo and answers it with HTTP 429; camo then returns a 502 ("Invalid upstream response (429)"), so the badge breaks on GitHub while the same URL works in a browser. The redirect from the old URL was not the problem. The Shields.io badges in the same README render fine.

    Fix: use the Shields.io Read the Docs badge (https://img.shields.io/readthedocs/<slug>), which shows the build status of the default version, like the RTD badge did. The link target stays unchanged.

  4. added
    status: in progress
    on Oct 24, 2026
  5. removed
    status: in progress
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowtype: docsworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions