Difficult-Rocket/docs/book.toml

56 lines
1.3 KiB
TOML
Raw Normal View History

2023-01-05 21:36:47 +08:00
[book]
authors = ["shenjack"]
language = "zh-cn"
multilingual = false
src = "src"
title = "Difficult-Rocket-docs"
[build]
2023-01-06 19:38:18 +08:00
build-dir = './book'
2023-01-05 21:36:47 +08:00
create-missing = false
use-default-preprocessors = true # use the default preprocessors
extra-watch-dirs = [] # directories to watch for triggering builds
# 默认 404 文件
2023-01-05 21:36:47 +08:00
[output.html]
input-404 = "404.md"
additional-css = ["theme/pagetoc.css"]
additional-js = ["theme/pagetoc.js"]
2023-01-05 21:36:47 +08:00
# Git 相关配置
2023-01-06 16:03:13 +08:00
git-repository-url = "https://github.com/shenjackyuanjie/Difficult-Rocket"
git-branch = "main"
# 右上角的 "在 Github 内打开" 按钮
2023-01-06 16:03:13 +08:00
open-on-text = "Found a bug? [Edit this page on GitHub.]"
# 最大搜索数量
2023-01-05 21:36:47 +08:00
[output.html.search]
limit-results = 15
# 允许打印
2023-01-05 21:36:47 +08:00
[output.html.print]
enable = true # include support for printable output
page-break = true # insert page-break after each chapter
[rust]
edition = "2021" # the default edition for code blocks
### 扩展部分
# 检查文档内链接
[output.linkcheck]
follow-web-links = false
warning-policy = "ignore"
exclude = [ "requirement-dev.txt" ]
traverse-parent-directories = true
# 支持脚注 ( {{footnote: Or is it?}} )
[preprocessor.footnote]
# 添加右侧目录
[preprocessor.pagetoc]
# 从本地运行一些东西拿到 markdown 里来
[preprocessor.cmdrun]