-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path_quarto-full.yml
More file actions
54 lines (50 loc) · 1.98 KB
/
_quarto-full.yml
File metadata and controls
54 lines (50 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# full profile: 渲染全书所有章节
# 使用方式:quarto render(默认)或 quarto render --profile full
#
# 添加新章节的步骤:
# 1. 在 chapters/ 下新建 chapter-N/ 目录
# 2. 在 project.render 中加入新章节路径(可使用 glob 通配符)
# 3. 在 website.sidebar.contents 中加入对应的导航条目
project:
render:
- index.md
# 示例:渲染章节模板下的所有 md 文件
- chapters/chapter-template/index.md
- chapters/chapter-template/section-*.md
- chapters/chapter-template/summary.md
# TODO: 在此处追加更多章节,例如:
# - chapters/chapter-1/index.md
# - chapters/chapter-1/section-*.md
# - chapters/chapter-1/summary.md
# - chapters/chapter-2/index.md
# - chapters/chapter-2/section-*.md
# - chapters/chapter-2/summary.md
website:
sidebar:
contents:
- index.md
# 示例:用 section 把章节组织成"部分",每个部分可以包含多个章节
- section: "第一部分:示例部分"
contents:
- section: chapters/chapter-template/index.md
contents:
- chapters/chapter-template/section-1.md
- chapters/chapter-template/section-2.md
- chapters/chapter-template/summary.md
# TODO: 按需添加更多部分与章节,例如:
# - section: "第二部分:进阶"
# contents:
# - section: chapters/chapter-2/index.md
# contents:
# - chapters/chapter-2/section-2-1.md
# - chapters/chapter-2/section-2-2.md
# - chapters/chapter-2/summary.md
#
# 也可以在 section 上手动指定标题和首页链接:
# - section: "第 N 章 自定义标题"
# href: chapters/chapter-N/section-N-1.md
# contents:
# - text: "N.1 小节标题"
# href: chapters/chapter-N/section-N-1.md
# - chapters/chapter-N/section-N-2.md
# - chapters/chapter-N/summary.md