Adding GitHub Download Count Badge to Readme Mark Down

倾然丶 夕夏残阳落幕 提交于 2019-12-06 01:52:36

问题


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/

![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg?style=plastic)

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:

[![Github All Releases](https://img.shields.io/github/downloads/atom/atom/total.svg)]()

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!