Skip to content

Commit dac7bbd

Browse files
committed
docs: 添加博客文档并更新旧版手册链接
- 在文档目录中添加博客索引页面 - 修正旧版手册链接的尾部斜杠
1 parent 4744466 commit dac7bbd

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

doc/_static/switcher.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
{
1313
"name": "torch-book 旧版",
1414
"version": "old",
15-
"url": "https://torch-book.readthedocs.io/zh-cn/old"
15+
"url": "https://torch-book.readthedocs.io/zh-cn/old/"
1616
}
1717
]

doc/blog/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 博客
2+
3+
```{button-link} ./archive.html
4+
:color: primary
5+
阅读博文
6+
```
7+
8+
```{postlist}
9+
:list-style: circle
10+
:date: "%Y-%m-%d"
11+
:format: "{title} - {date}"
12+
:excerpts:
13+
```

doc/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
```{toctree}
44
readme
5+
blog/index
56
旧版 Torch 手册 <https://torch-book.readthedocs.io/zh-cn/old/index.html>
67
```
78

0 commit comments

Comments
 (0)