github更新步骤_改善GitHub概述页面的3个步骤

github更新步骤

In this article, you will learn how to improve your GitHub overview page by adding your own content and dynamically generated GitHub stats.

在本文中,您将学习如何通过添加自己的内容和动态生成的GitHub统计信息来改善GitHub概述页面。

Let’s get started.

让我们开始吧。

  1. Create a new repository. The repository name needs to be the same as your GitHub account name.

    创建一个新的存储库。 存储库名称必须与您的GitHub帐户名称相同。

    e.g.

    例如

    https://github.com/shinokada/shinokada

    https://github.com/shinokada/shinokada

  2. Create a README.md file in this repo.

    在此README.md中创建一个README.md文件。

    The contents of this file will be on your GitHub overview page.

    该文件的内容将在您的GitHub概述页面上。

You can use markdown to add headers, images, links, tables, emoji, and lists.

您可以使用markdown添加标题,图像,链接,表格, 表情符号和列表。

You can find many programming language icons from the GitHub explore repo. All the icons are under the topic folder.

您可以从GitHub Explore repo中找到许多编程语言图标。 所有图标都在主题文件夹下。

Image for post
repository houses all of the community-curated content for GitHub Topics and Collections. (Image by the author) 存储库包含GitHub主题和馆藏的所有社区策划内容。 (图片由作者提供)

3. Add GitHub Stats Cards.

3.添加GitHub统计卡。

Github Readme Stats dynamically generate GitHub stats about your repositories.

Github自述文件统计信息可动态生成有关您的存储库的GitHub统计信息。

There are three kinds of stats cards.

统计卡分为三种。

  • Stats Card

    统计卡
  • Top Language Card

    热门语言卡
  • Extra Pin

    额外的针脚

统计卡 (Stats Card)

Image for post
Stats Card Example. (Image by the author)
统计卡示例。 (图片由作者提供)

The Stats Card shows total stars, commits, PR, issues, and contributions.

统计卡片显示星标总数,承诺数,公关数,问题数和贡献数。

For example, you can copy and paste the following code.

例如,您可以复制并粘贴以下代码。

// README.md
![Github stats](https://github-readme-stats.vercel.app/api?username=yourusername&theme=highcontrast&show_icons=true&count_private=true)

You need to change the ?username=yourusername to your GitHub username, e.g ?username=shinokada.

您需要将?username=yourusername更改为您的GitHub用户名,例如?username=shinokada

You can set one of the themes in &theme=.

您可以在&theme=设置主题之一。

You can count your private commits by &count_private=true.

您可以通过&count_private=true来计数您的私人提交。

You can use any options in this table.

您可以在此表中使用任何选项。

Image for post
Option details. (Image by the author)
选项详细信息。 (作者提供的图片)

顶级语言卡 (Top Language Card)

This card shows your repos’ language stats.

此卡显示您的回购协议的语言统计信息。

// README.md
![Top Languages Card](https://github-readme-stats.vercel.app/api/top-langs/?username=shinokada)
Image for post
Top Language Stats example. (Image by the author)
热门语言统计示例。 (图片由作者提供)

You can use &layout=compact to change the card design.

您可以使用&layout=compact更改名片设计。

![Top Languages Card](https://github-readme-stats.vercel.app/api/top-langs/?username=shinokada&layout=compact)
Image for post
Top Language Stats compact layout. (Image by the author)
热门语言统计的紧凑布局。 (图片由作者提供)

You can use the hide option to hide languages.

您可以使用hide选项隐藏语言。

![Top Languages Card](https://github-readme-stats.vercel.app/api/top-langs/?username=shinokada&hide=javascript,html)

额外的针脚 (Extra Pin)

You can use extra pins to show your repositories.

您可以使用额外的图钉来显示存储库。

Your description in About will be displayed on the card.

关于卡中的描述将显示在卡上。

Image for post
Update your Github About.
更新您的Github About。
[![Repo name](https://github-readme-stats.vercel.app/api/pin/?username=yourusename&repo=repo-name)](https://github.com/yourusername/repo-name)

Use the show_owner variable to include the repo owner’s username.

使用show_owner变量包含回购所有者的用户名。

[![Repo name](https://github-readme-stats.vercel.app/api/pin/?username=yourusename&repo=repo-name&show_owner=true)](https://github.com/yourusername/repo-name)
Image for post
Extra Pin example. (Image by the author)
额外的引脚示例。 (作者提供的图片)

Here is my README.md file.

这是我的README.md文件

I hope you can use the above codes for your GitHub overview page. It is easy to apply this to get an overview of your GitHub stats.

我希望您可以将以上代码用于GitHub概述页面。 可以很容易地应用它来获得GitHub统计信息的概述。

翻译自: https://medium.com/better-programming/3-steps-to-improve-your-github-overview-page-950c64d4d465

github更新步骤

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值