-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add alternative static badge #1395
Conversation
Generated by 🚫 dangerJS |
ad7aefe
to
fb4fc0b
Compare
Presumably the justification here is that this is a much easier way to programmatically generate static badge URIs, and also avoids the need for a user to learn how to do custom escaping. 👍 Couple misc. thoughts:
|
Yes a main reason being users not needing to escape a mildly common character, think I saw something about it in an issue recently.
|
Could you elaborate? Do you mean to avoid conflicts with the current static badge?
Agreed! So I suppose that's the question, whether to change the one we present and document on the homepage. |
More to avoid conflicts with anything we might add to the I think it should probably stay as it currently is.
A couple options could be:
|
I'm fine with that. 🤔 We could pick a format based on whether or not there are special characters in the badge… Think it also makes sense to provide documentation for the alternate format. |
I think it could be confusing for some users if we just auto decided the format to use based on the input. Definitely needs some docs, but where should the documentation be located? |
Ooooh, I forgot this was in flight! /cc @bkdotcom Could we harmonize the scheme for this badge with the proposal in #1525? I left some notes in #1525 (comment). |
|
There are a lot of open PRs with code that needs reviewing. To help the maintainers identify the actionable PRs that are on a critical path, I'm marking this PR "stale." It's not dead, and can or will be picked up at some point. Right now this one is blocked on #2284, though it will also need to be rewritten as a new-style static badge. |
Just going to close this for now, may pick it up again later. |
Closes #815
Add an alternative static badge similar to the
badge/dynamic/json
link,Uses the uri
/badge/static.svg
Examples:
/badge/static.svg?label=Static&value=Badge
/badge/static.svg?label=Static&value=Badge&colorscheme=brightgreen
/badge/static.svg?label=Static&value=Badge&colorB=FF00FF
Still need to add tests