Chapter 1
book.toml
示例
[book]
title = "mdbook 模范 例子"
authors = ["yobrave"]
description = "mdbook nice 例子."
language = "zh-CN"
[build]
build-dir = "docs"
create-missing = false
use-default-preprocessors = false
[preprocessor.links]
# renderers = ["html"]
[output.html]
mathjax-support = false
theme = "theme"
curly-quotes = true
google-analytics = "UA-128555056-1"
# additional-css = ["theme/custom.css"]
git_repository_url = "https://github.com/chinanf-boy/mdbook-nice-example"
git_repository_icon = "fa-github"
# additional-js = ["theme/custom.js"]
# [output.linkcheck]
# follow-web-links = true
# traverse-parent-directories = false
# exclude = [ "google\\.com" ]
[output.html.playpen]
# editor = "./path/to/editor"
editable = false
[output.html.search]
enable = true
# searcher = "./path/to/searcher"
limit-results = 30
teaser-word-count = 30
use-boolean-and = true
boost-title = 2
boost-hierarchy = 1
boost-paragraph = 1
expand = true
heading-split-level = 3
# copy-js = true
关于导入其他文件的两种方式
playpen
我是这样写的{{ #playpen ***}}
***
==./SUMMARY.md
# #![allow(unused_variables)] #fn main() { # Summary - [book.toml 配置](./chapter_1.md) - [关于导入其他文件](./include.md) - [01-readme](./01/README.md) #}
include
我是这样写的{{ #include ***}}
***
==./SUMMARY.md
Summary
下一节,是rust文件的导入,看看有什么不同
关于导入其他文件
我是这样写的{{ #playpen ***}}
***
==./test.rs
fn main(){ println!("{}", "hello,world") }
use-default-preprocessors = false