When working with PyPI etc., I like to use version badges, especially for indexing tools, but I didn't see any suitable option for that with Nimble, so I created mine. It has been stable for about a week now, updating every 12 hours.
Coincidentally, @daylinmorgan just posted a solution here using shields.io, but I see them as complementary. Their solution certainly wins in cross-service consistency and reliability, while mine wins the ✨ beauty contest ✨, can easily be modified to any payload, and deployed statically without the internet. You can find my repo here https://github.com/amkrajewski/nimble-badge
In short, I forked the yglukhov's repo with a graphical design by Amy Shaw. Then I:
It is dead simple to use. SVG for every badge is statically hosted, and you just use your package name. E.g. for arraymancer,
<img src="https://raw.githubusercontent.com/amkrajewski/nimble-badge/master/badges/arraymancer.svg" height="24">
or add your own payload by replacing v1.11.11 in the nimble.svg with something you want to share with the world
I hope you guys find it useful 🙂 And cheers to Nim devs who created such a beautiful language 🍻
It seems that DateVer versions get cut off :/
Adjusted and should propagate soon 🙂
Versions longer than 9 total symbols are now resized and centered to neatly fill the available space.
It should work pretty well, even with very long ones.
or
That's a good catch, though the off-centering is by design. I offset both text fields by 5% of the height because (to my taste) it looked much better for the "v1.2.34" version tag (by far the most common pattern in Nimble) because of the little "v" being inherently offset towards the bottom. It also aligns better with the crown.
But I agree the visual advantage breaks when a super long tag is "v2023.11.11.post2" pointing off-center from "NIMBLE". I just pushed a commit to align them to the "NIMBLE" center.
Also, you can quickly center it with the built-in sed Unix command:
sed -i "" "s/350.0/354.0/g" nimble.svg
I can make this happen by default for every badge and host them alongside in a directory like centeredBadges, if there is any interest in that.