Skip to content

WIP: Add basic badge support. #2071

New issue

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

Closed
wants to merge 1 commit into from
Closed

WIP: Add basic badge support. #2071

wants to merge 1 commit into from

Conversation

ericholscher
Copy link
Member

This moves to hosting badges internally to Read the Docs.

This is a WIP, as the SVG code needs to be fixed. I don't know SVG super well, but we basically just need to fix the template so that it will properly render with variable width text (eg. varying project name length).

@ericholscher ericholscher added the PR: work in progress Pull request is not ready for full review label Mar 14, 2016
@ghost
Copy link

ghost commented Mar 21, 2016

Looks great! 😄

url = 'https://img.shields.io/badge/docs-%s-%s.svg?style=%s' % (
version.slug.replace('-', '--'), color, style)
return _badge_return(redirect, url)
color = 'failing'
Copy link
Member

Choose a reason for hiding this comment

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

color looks like a typo to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, the bigger issue here is fixing the SVG template. I just built a very basic example, but need to figure out the SVG part before we can ship it.

@ericholscher
Copy link
Member Author

This is now fixed in another PR

@stsewd stsewd deleted the host-badges branch August 31, 2018 19:34
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.

2 participants