Skip to content

Commit 3a94f6e

Browse files
committed
docs: 添加GitHub统计卡片插件并更新Python库文档
- 在conf.py中添加mystx.ext.github_readme_stats扩展 - 更新Python库文档中的GitHub pinned repo语法
1 parent 84b869a commit 3a94f6e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,6 @@ def setup(app):
191191

192192
# -- 自定义网站的标题 --------------
193193
# html_title = '动手学习 Python'
194+
195+
# GitHub 统计卡片插件
196+
extensions.append("mystx.ext.github_readme_stats")
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Python 库
22

3-
```{admonition} 动手学习
4-
<a href="https://xinetzone.github.io/d2py">
5-
<img src="https://github-readme-stats.vercel.app/api/pin/?show_owner=true&username=xinetzone&repo=d2py" />
6-
</a>
3+
```{github-pinned-repo}
4+
:username: xinetzone
5+
:repo: tao
6+
:theme: moltack
7+
:link: https://xinetzone.github.io/tao
78
```

0 commit comments

Comments
 (0)