Skip to content

README: use the official readthedocs badge - #513

Merged
grst merged 1 commit into
scverse:mainfrom
ilia-kats:readthedocs_badge
Jun 15, 2026
Merged

grst merged 1 commit into
scverse:mainfrom
ilia-kats:readthedocs_badge

Conversation

@ilia-kats

Copy link
Copy Markdown
Collaborator

the shields.io badge started displaying "rate-limited by upstream service" most of the time

the shields.io badge started displaying "rate-limited by upstream
service" most of the time
@grst
grst merged commit 6bc4d71 into scverse:main Jun 15, 2026
7 of 8 checks passed

[badge-tests]: https://img.shields.io/github/actions/workflow/status/{{ cookiecutter.github_user }}/{{ cookiecutter.project_name }}/test.yaml?branch=main
[badge-docs]: https://img.shields.io/readthedocs/{{ cookiecutter.project_name }}
[badge-docs]: https://app.readthedocs.org/projects/{{ cookiecutter.project_name }}/badge/?version=latest

@flying-sheep flying-sheep Jun 15, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

don’t hardcode version, people can choose which one is the default.

That’s why links to HTML pages should optimally contain /page/ too instead of /en/latest/ or so

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I was under the impression that this corresponds to what shields.io is doing?

@flying-sheep flying-sheep Jun 15, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On RTD, you choose a “default version”, which is the one referenced when you use / or /page/<subpage> links. And that’s also the one you get when not specifying version= for the badge.

I doubt shields.io uses anything other than the default version when you don’t specify one, since latest is just one of the versions that are auto-created for a new project, and it can be deleted or renamed.

/edit: yup, it just forwards to the RTD badge, which of course defaults to the default version: https://github.com/badges/shields/blob/dffd223ef4c0026c786c8e0d5cd93f9cc24bec55/services/readthedocs/readthedocs.service.js#L60-L66

@flying-sheep flying-sheep mentioned this pull request Jun 15, 2026
This was referenced Jul 17, 2026
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.

3 participants