-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbook.toml
More file actions
49 lines (42 loc) · 1.12 KB
/
book.toml
File metadata and controls
49 lines (42 loc) · 1.12 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
[book]
authors = ["Auric"]
language = "en"
src = "src"
title = "Binary Universe"
[preprocessor.mermaid]
command = "mdbook-mermaid"
[preprocessor.katex]
after = ["links", "mermaid"]
[output.html]
git-repository-url = "https://github.com/loning/mbook-binary"
mathjax-support = true
no-section-label = true
additional-js = ["mermaid.min.js", "mermaid-init.js"]
additional-css = []
additional-head-tags = '''
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YJD1R6PLTV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YJD1R6PLTV');
</script>
'''
[output.html.search]
enable = true
limit-results = 20
teaser-word-count = 15
use-boolean-and = true
boost-title = 2
boost-hierarchy = 1
boost-paragraph = 1
expand = true
heading-split-level = 2
copy-js = true
[output.html.fold]
enable = true # 打开折叠
level = 0 # 默认展开到第 1 层,其他层可点击折叠
[build]
build-dir = "book" # 构建输出目录
create-missing = false # 如果链接的文件不存在则报错