Repository navigation
README: use the official readthedocs badge - #513
Conversation
the shields.io badge started displaying "rate-limited by upstream service" most of the time
|
|
||
| [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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
I was under the impression that this corresponds to what shields.io is doing?
There was a problem hiding this comment.
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
the shields.io badge started displaying "rate-limited by upstream service" most of the time