-
Notifications
You must be signed in to change notification settings - Fork 2
/
book.toml
50 lines (41 loc) · 1.7 KB
/
book.toml
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
[book]
title = "Rust 语言入门 Introduction to Rust"
description = ""
authors = ["Xu Shaohua <shaohua@biofan.org>"]
language = "zh-CN"
[rust]
edition = "2021"
[build]
build-dir = "book"
create-missing = false
[preprocessor.pagetoc]
[output.html]
additional-css = ["theme/pagetoc.css"]
additional-js = ["theme/pagetoc.js"]
edit-url-template = "https://github.com/xushaohua/intro-to-rust/edit/main/{path}"
git-repository-url = "https://github.com/xushaohua/intro-to-rust"
mathjax-support = false
[output.html.fold]
enable = true
level = 0
[output.html.playground]
editable = true # allows editing the source code
copyable = true # include the copy button for copying code snippets
copy-js = true # includes the JavaScript for the code editor
line-numbers = true # displays line numbers for editable code
runnable = true # displays a run button for rust code
[output.html.print]
enable = true # include support for printable output
page-break = true # insert page-break after each chapter
[output.html.search]
enable = true # enables the search feature
limit-results = 30 # maximum number of search results
teaser-word-count = 30 # number of words used for a search result teaser
use-boolean-and = true # multiple search terms must all match
boost-title = 2 # ranking boost factor for matches in headers
boost-hierarchy = 1 # ranking boost factor for matches in page names
boost-paragraph = 1 # ranking boost factor for matches in text
expand = true # partial words will match longer terms
heading-split-level = 3 # link results to heading levels
copy-js = true # include Javascript code for search
[preprocessor.links]