We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
maxAge
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shields.io allows passing a maxAge query parameter that should address #1612, but this is not supported by the RTD redirect.
The Location header from curl -v https://readthedocs.org/projects/pyphi/badge/?version=latest&style=flat-square&maxAge=600 should be:
Location
curl -v https://readthedocs.org/projects/pyphi/badge/?version=latest&style=flat-square&maxAge=600
Location: https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat-square&maxAge=600
maxAge is ignored, though style is respected.
style
The Location header from curl -v https://readthedocs.org/projects/pyphi/badge/?version=latest&style=flat-square&maxAge=600 is:
Location: https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat-square
The text was updated successfully, but these errors were encountered:
This would be a great contribution! The code is here: https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/views/public.py#L119
Sorry, something went wrong.
Implemented in PR #3005.
8c37801
Merge pull request #3005 from wmayner/badge-max-age
0a4b1ac
Support badge `maxAge` (fix #3000 and #1612)
No branches or pull requests
Details
Shields.io allows passing a
maxAge
query parameter that should address #1612, but this is not supported by the RTD redirect.Expected Result
The
Location
header fromcurl -v https://readthedocs.org/projects/pyphi/badge/?version=latest&style=flat-square&maxAge=600
should be:Actual Result
maxAge
is ignored, thoughstyle
is respected.The
Location
header fromcurl -v https://readthedocs.org/projects/pyphi/badge/?version=latest&style=flat-square&maxAge=600
is:The text was updated successfully, but these errors were encountered: