将GitHub下载计数徽章添加到自述文件中记下 [英] Adding GitHub Download Count Badge to Readme Mark Down

查看:125
本文介绍了将GitHub下载计数徽章添加到自述文件中记下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加一个徽章,以计算我在GitHub上的一个项目的总下载次数.我碰到了具有所有图像防护罩的页面

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 发布](https://img.shields.io/github/downloads/atom/atom/latest/total.svg?style=plastic)

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

关于如何将其添加到GitHub中的项目的任何想法?

Any ideas on how I could add this to my project in GitHub?

推荐答案

您必须将其作为图像插入到README中.如果您的README是markdown(README.md),则应为:

You have to insert it as an image into your README. If your README is markdown (README.md) that should be like:

语法:

[![Github All Releases](https://img.shields.io/github/downloads/<-- User Name-->/<-- Your Repo Name-->/total.svg)]()

示例

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

如果您单击shields.io上的徽章,则可以复制粘贴降价语法,您需要将其插入README.md

If you click on the badge on shields.io you can copy-paste markdown syntax you need to insert into README.md

这篇关于将GitHub下载计数徽章添加到自述文件中记下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆