Skip to content

Commit b2cd3f3

Browse files
author
yinghuochong-coder
committed
模板修改
1 parent 319d7ca commit b2cd3f3

File tree

4 files changed

+36
-11
lines changed

4 files changed

+36
-11
lines changed

book_template/book.toml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
[book]
22
authors = ["chenxiaolong"]
3-
language = "en"
3+
language = "zh-cn"
44
src = "src"
5-
title = "高等数学"
5+
title = "linux 内核学习"
66

77
[output.html]
88
additional-css = ["./theme/css/catppuccin.css", "./theme/css/custom.css"]
99
default-theme = "latte"
1010
preferred-dark-theme = "latte"
1111

12+
[output.html.fold]
13+
enable = true
14+
level = 10
15+
16+
# mdbook-autosummary
17+
[preprocessor.autosummary]
18+
index-name = "index.md"
19+
ignore-hidden = true
20+
21+
# This is so that mdBook doesn't start regenerating
22+
# deleted folders before autosummary can remove them from SUMMARY.md
23+
[build]
24+
create-missing = false
25+
1226
[preprocessor.katex]
13-
after = ["links"]
27+
after = ["autosummary", "links"]

book_template/src/SUMMARY.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# Summary
1+
<!-- Generated by mdbook-autosummary v0.1.9 - do not edit manually! -->
22

3-
- [高等数学](./高等数学.md)
4-
- [映射与函数](./映射与函数.md)
5-
- [洛必达法则](./洛必达法则.md)
6-
- [泰勒公式](./泰勒公式.md)
7-
- [Windows 驱动开发](./windows_divers.md)
3+
[](<index.md>)
4+
- [mdbook 测试](<测试/index.md>)
5+
- [mdbook 测试](<测试/测试1/index.md>)
6+
- [mdbook 测试](<测试/测试1/测试2/index.md>)
7+
- [高等数学](<高等数学/index.md>)
8+
- [映射与函数.md](<高等数学/映射与函数.md>)
9+
- [泰勒公式](<高等数学/泰勒公式.md>)
10+
- [洛必达法则](<高等数学/洛必达法则.md>)
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
# Windows 驱动开发
2-
3-

book_template/theme/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2+
:root {
3+
--content-max-width: 90%;
4+
}
5+
6+
.nav-chapters {
7+
max-width: 50px;
8+
min-width: 20px;
9+
}
10+
111
h1 {
212
margin-block-start: 4em;
313
}

0 commit comments

Comments
 (0)