Skip to content

Commit 39d5102

Browse files
committed
fixindex
1 parent 21eab2a commit 39d5102

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
{% set icon = icon2 %}
2+
13
# 小彭老师现代 C++ 大典
24

35
小彭大典是一本关于现代 C++ 编程的权威指南,它涵盖了从基础知识到高级技巧的内容,适合初学者和有经验的程序员阅读。本书由小彭老师亲自编写,通过简单易懂的语言和丰富的示例,帮助读者快速掌握 C++ 的核心概念,并学会如何运用它们来解决实际问题。
46

57
> {{ icon.fun }} 敢承诺:土木老哥也能看懂!
68
7-
# 前言
9+
## 前言
810

911
推荐用手机或平板**竖屏**观看,可以在床或沙发上躺着。
1012

main.py

+7
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ def define_env(env):
66
warn='<img src="../img/warning.png" height="30px" width="auto" style="margin: 0; border: none"/>',
77
detail='<img src="../img/question.png" height="30px" width="auto" style="margin: 0; border: none"/>',
88
)
9+
env.variables.icon2 = dict(
10+
fun='<img src="./img/awesomeface.png" height="30px" width="auto" style="margin: 0; border: none"/>',
11+
tip='<img src="./img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/>',
12+
story='<img src="./img/book.png" height="30px" width="auto" style="margin: 0; border: none"/>',
13+
warn='<img src="./img/warning.png" height="30px" width="auto" style="margin: 0; border: none"/>',
14+
detail='<img src="./img/question.png" height="30px" width="auto" style="margin: 0; border: none"/>',
15+
)

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
site_name: ✝️小彭大典✝️
22
nav:
33
- 章节列表:
4-
- index.md
4+
- 前言: index.md
55
- helloworld.md
66
- platform.md
77
- vartypes.md

0 commit comments

Comments
 (0)