alabaster icon indicating copy to clipboard operation
alabaster copied to clipboard

Add generic badges support

Open asvetlov opened this issue 8 years ago • 4 comments

Like here: https://github.com/aio-libs/multidict in README.rst It should be managed by configuration like travis and codecov buttons. I would love pypi version and supported python versions badges too.

What do you think? I can provide PR if the idea makes sense.

asvetlov avatar Oct 24 '17 16:10 asvetlov

I don't think this is a good idea — why have a chat room for a theme?

kennethreitz avatar Nov 02 '17 19:11 kennethreitz

Well, chat room is not good, I understand your position. There are too many badges in the wild, alabaster cannot provide them all.

What's about adding generic badges support? badges config parameter is a list of dictionaries, every dict has img, target and optional alt, width, height parameters -- like RST image tag. scale and align are not required IMHO. With this param user could add any badge, just like pushing a new image tag in README.

asvetlov avatar Nov 08 '17 08:11 asvetlov

I think that's a great idea!

kennethreitz avatar Nov 08 '17 19:11 kennethreitz

Pull Request #124 is done. @kennethreitz please review.

asvetlov avatar Nov 09 '17 12:11 asvetlov