问题
I would like to add a badge that counts the total number of downloads that happen for one of my projects that I have on GitHub. I came across this page that has all the image shields
https://shields.io/

Any ideas on how I could add this to my project in GitHub?
回答1:
You have to insert it as image into your README
. If your README
is markdown (README.md) that should be like:
[]()
If you click on badge on shields.io you can copy-paste markdown syntax you need to insert into README.md
回答2:
Check out PePy for receiving the download count of your repository and the code for your badge. Here's an example:
http://pepy.tech/count/video2tfrecord
来源:https://stackoverflow.com/questions/45672242/adding-github-download-count-badge-to-readme-mark-down