|
2 | 2 |
|
3 | 3 |  |
4 | 4 | # Code Statistic |
5 | | -</div> |
6 | | - |
7 | 5 |
|
8 | | -## 🍏 Quickstart |
| 6 | +##### Dynamically analysis the code for each language in the repository/user and generate the results for your GitHub account and repo README. |
| 7 | +##### 动态生成用户/仓库中的语言统计,可以作为图片装饰在个人首页和仓库README中 |
9 | 8 |
|
10 | | -<div align="center"> |
11 | 9 |
|
12 | | -### Rapid generation 👉 **[stats.deeptrain.net](https://stats.deeptrain.net/)** 👈 |
| 10 | +### Rapid generation | 快速生成 👉 **[stats.deeptrain.net](https://stats.deeptrain.net/)** 👈 |
13 | 11 |
|
14 | 12 | </div> |
15 | 13 |
|
16 | | -### 🍊 Repo |
| 14 | +## 🍏 Quickstart | 快速开始 |
| 15 | + |
| 16 | +### 🍊 Repo | 仓库 |
17 | 17 | */repo/**username**/**repo**/* |
18 | 18 | ```markdown |
19 | | -[](https://github.com/zmh-program/code-statistic) |
| 19 | +[](https://github.com/zmh-program/code-statistic) |
20 | 20 | ``` |
21 | | -[](https://github.com/zmh-program/code-statistic) |
| 21 | +[](https://github.com/zmh-program/code-statistic) |
22 | 22 |
|
23 | | -### 🍉 User |
| 23 | +### 🍉 User | 用户 |
24 | 24 | */user/**username**/* |
25 | 25 | ```markdown |
26 | | -[](https://github.com/zmh-program/code-statistic) |
| 26 | +[](https://github.com/zmh-program/code-statistic) |
27 | 27 | ``` |
28 | | -[](https://github.com/zmh-program/code-statistic) |
| 28 | +[](https://github.com/zmh-program/code-statistic) |
29 | 29 |
|
30 | | -### 🥝 Dark Mode |
| 30 | +### 🥝 Dark Theme | 暗系主题 |
31 | 31 | *.../**?theme=dark*** |
32 | 32 | ```markdown |
33 | | -[](https://github.com/zmh-program/code-statistic) |
| 33 | +[](https://github.com/zmh-program/code-statistic) |
34 | 34 | ``` |
35 | | -[](https://github.com/zmh-program/code-statistic) |
| 35 | +[](https://github.com/zmh-program/code-statistic) |
36 | 36 |
|
37 | | -### Ref as HTML |
| 37 | +### Ref as HTML | 作为HTML引用 |
38 | 38 | ```html |
39 | 39 | <a href="https://github.com/zmh-program/code-statistic"> |
40 | | - <img src="https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark"> |
| 40 | + <img src="https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark" alt="zmh-program's Github Stats"> |
41 | 41 | </a> |
42 | 42 | ``` |
43 | 43 |
|
44 | | -<a href="https://github.com/zmh-program/code-statistic"><img src="https://stats.deeptrain.net/repo/zmh-program/Zh-Website/?theme=dark"></a> |
| 44 | +### Ref as AsciiDoc | 作为AsciiDoc使用 |
| 45 | +``` |
| 46 | +image:https://stats.deeptrain.net/user/zmh-program/[zmh-program's Github Stats] |
| 47 | +``` |
45 | 48 |
|
46 | | -## 🍎 Build Your Own Server |
47 | | -##### 👉 *Build a [Free Server](https://replit.com/@zmh-program/code-stats) using the template ([Replit](https://replit.com))* |
48 | | -### 🍒 Initialization |
| 49 | +### 🍎 Build Your Own Server | 搭建自己的服务器 |
| 50 | +#### 🍒 Initialization | 初始化 |
49 | 51 | ```shell |
50 | 52 | npm install |
51 | 53 | ``` |
52 | 54 |
|
53 | | -### 🍬 Configuration |
| 55 | +#### 🍬 Configuration | 配置 |
54 | 56 | https://github.com/zmh-program/code-statistic/blob/a3841c2eefcda8484f94f56724d8d6c2c015cd7c/config.ts#L1-L4 |
55 | 57 |
|
56 | | -### 🎄 Environment Variable |
57 | | -`CODE_STATISTIC`: your GitHub Access Token |
| 58 | +#### 🎄 Environment Variable | 环境变量 |
| 59 | + |
| 60 | +| `CODE_STATISTIC` | GitHub Access Token | |
| 61 | +|------------------|---------------------| |
| 62 | + |
58 | 63 |
|
59 | | -### 🍇 Run |
| 64 | +#### 🍇 Deployment | 部署 |
60 | 65 | ```shell |
61 | 66 | ts-node index |
62 | 67 | ``` |
0 commit comments