github - 将 GitHub 下载计数徽章添加到自述文件标记下来

标签 github shields.io

我想添加一个徽章,用于计算我在 GitHub 上的一个项目的下载总数。我遇到了这个包含所有图像屏蔽的页面

https://shields.io/

![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/

相关文章:

github - 检查 GitHub Actions 上的发布标签是否是最新的

linux - Github 提交和发布通知程序 Linux

sonarqube - 通过shields.io徽章添加SonarQube覆盖范围

svg - 是否可以通过shields.io 徽章从nuget.org 获取下载计数?

git - 动态徽章 GitHub

github - Shield.IO 许可证徽章和 Github。许可证徽章不起作用

linux - 为什么我的 git auto-update Expect 脚本不起作用?

github - 下载文件最新版本的GitHub URL?

git - 如何配置 gitignore?