File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 88
99PS:
1010
11- * 对照源码位置:[ https://github.com/rust-lang/book/tree/main/src ] [ source ]
12- * 注意源码 ` src ` 目录一般会比 [ https://doc.rust-lang.org/book/ ] ( https://doc.rust-lang.org/book/ ) 要新,如果遇到冲突建议对照 ` src ` 目录。
13- * 每章翻译开头都带有官方链接和 commit hash 的注释,若发现与官方不一致,欢迎 Issue 或 PR
11+ - 对照源码位置:[ https://github.com/rust-lang/book/tree/main/src ] [ source ]
12+ - 注意源码 ` src ` 目录一般会比 [ https://doc.rust-lang.org/book/ ] ( https://doc.rust-lang.org/book/ ) 要新,如果遇到冲突建议对照 ` src ` 目录。
13+ - 每章翻译开头都带有官方链接和 commit hash 的注释,若发现与官方不一致,欢迎 Issue 或 PR
1414
1515[ source ] : https://github.com/rust-lang/book/tree/main/src
1616
2626
2727全局安装 mdbook
2828
29- ``` bash
29+ ``` bash
3030cargo install mdbook
3131```
3232
@@ -36,13 +36,10 @@ cd 到项目目录,然后开始构建。构建好的静态文档会出现在 "
3636mdbook build
3737```
3838
39- ### 文档撰写
40-
41- 可以通过任意的 http 服务器来预览构建的文档。举个例子:
39+ 在本地部署 HTTP 服务器以阅读文档:
4240
4341``` bash
44- cargo install simple-http-server
45- simple-http-server .\b ook\h tml\ -i
42+ mdbook serve
4643```
4744
4845## 社区资源
@@ -62,6 +59,7 @@ simple-http-server .\book\html\ -i
6259本翻译主要采用 [ mdBook] ( https://github.com/rust-lang-nursery/mdBook ) 格式。同时支持 [ GitBook] ( https://github.com/GitbookIO/gitbook ) ,但会缺失部分功能,如一些代码没有语法高亮。
6360
6461本翻译加速查看站点有:
65- - 深圳站点:< http://120.78.128.153/rustbook >
62+
63+ - 深圳站点:< http://120.78.128.153/rustbook >
6664
6765[ GitBook.com] ( https://www.gitbook.com/ ) 地址:< https://kaisery.github.io/trpl-zh-cn/ >
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ custom-template = "custom-template.typ"
2525pdf = true
2626section-number = true
2727rust-book = true
28+ optional = true
2829
2930[rust ]
3031edition = " 2024"
You can’t perform that action at this time.
0 commit comments