Open MichaelCurrin opened 3 years ago
For gitlab etc. I can't see github there
From shields.io
https://shields.io/#your-badge
It looks like simpleicons is already supported by name! No binary use needed
?logo=appveyor
Insert one of the named logos from (bitcoin, dependabot, discord, gitlab, npm, paypal, serverfault, stackexchange, superuser, telegram, travis) or simple-icons. Simple-icons are referenced using names as they appear on the simple-icons site. If the name includes spaces, replace them with dashes (e.g:
?logo=visual-studio-code
)?logo=data:image/png;base64,…
Insert custom logo image (≥ 14px high). There is a limit on the total size of request headers we can accept (8192 bytes). From a practical perspective, this means the base64-encoded image text is limited to somewhere slightly under 8192 bytes depending on the rest of the request header.
GenericBadge function supports this now
https://github.com/MichaelCurrin/badge-generator/blob/master/src/views/Catalogue.vue
And on generic badge page.
The binary option would be nice though
Use binary data...
https://stackoverflow.com/questions/38985050/how-do-i-use-the-logo-option-in-shields-io-badges
encode e.g. https://b64.io/ or shell tool
And percent encode it
http://meyerweb.com/eric/tools/dencoder/
This can go in a recipe/cheatsheet guide too for the overall process and specific tools (or reference those tools in existing docs).
Note some options like
logo=github
are available but this above proves the custom image usecase