我想添加一个徽章,用于计算我在 GitHub 上的一个项目的下载总数。我遇到了这个包含所有图像屏蔽的页面
![Github Releases](https://img.shields.io/github/downloads/atom/atom/latest/total.svg?style=plastic)
关于如何将其添加到我在 GitHub 中的项目的任何想法?
最佳答案
您必须将其作为图像插入到您的 README
中。 .如果您的 README
是 Markdown (README.md),应该是这样的:
句法:
[![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
中的 Markdown 语法。
关于github - 将 GitHub 下载计数徽章添加到自述文件标记下来,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45672242/