自学内容网 自学内容网

github——指标统计

github-readme-stats是一个可以统计指定用户github指标的项目。可以使用此项目统计自己的github,用于首页展示。效果如图:

在这里插入图片描述

它的作用

它可以:

  • 统计git操作
  • 统计账户编程语言构成比例
  • 解除github只能置顶6个项目的限制
  • 自定义卡片主题

    更多详情,请浏览项目仓库:中文文档

特定项目统计

在项目的README文件中添加,修改usernamerepo,更改为自己的名称和仓库即可。

# 统计git操作
![Anurag's GitHub stats](https://github-readme-stats.vercel.app/api?username=anuraghazra&count_private=true&layout=compact)

# 统计语言
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=WangYuanye421&layout=compact)](https://github.com/anuraghazra/github-readme-stats)

# 展示仓库,通过此方式解除github首页 pin数量的限制
<a href="https://github.com/anuraghazra/github-readme-stats">
  <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=github-readme-stats" />
</a>
<a href="https://github.com/anuraghazra/convoychat">
  <img align="center" src="https://github-readme-stats.vercel.app/api/pin/?username=anuraghazra&repo=convoychat" />
</a>

首页展示

创建与自己github同名的仓库,并创建README.md,你会看到github模版提示:

xxx/xxx is a ✨ _special_ ✨ repository 
because its `README.md` (this file) appears on your GitHub profile.

也就是说,和用户名同名的仓库的README.md会自动展示在首页。那么将上述统计逻辑应用在这个README.md中即可。


原文地址:https://blog.csdn.net/wyy546792341/article/details/142756516

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!