You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# Rust 程序设计语言(第二版) 简体中文版
|
|
|
|
|
|
|
|
|
|
[![Build Status](https://travis-ci.org/KaiserY/trpl-zh-cn.svg?branch=master)](https://travis-ci.org/KaiserY/trpl-zh-cn)
|
|
|
|
|
|
|
|
|
|
## 状态
|
|
|
|
|
|
|
|
|
|
还在施工中。大部分章节已经可以阅读。具体状态请参见官方 [projects](https://github.com/rust-lang/book/projects/1),`Frozen` 之后的内容应该较为稳定。
|
|
|
|
|
|
|
|
|
|
每章翻译开头都带有官方链接和 commit hash,若发现与官方不一致,欢迎 Issue 或 PR :)
|
|
|
|
|
|
|
|
|
|
## 静态页面构建与文档撰写
|
|
|
|
|
|
|
|
|
|
![image](/vuepress_page.png)
|
|
|
|
|
|
|
|
|
|
### 构建
|
|
|
|
|
|
|
|
|
|
你可以将本mdbook构建成一系列静态html页面。这里我们采用vuepress打包出静态网页。在这之前,你需要安装Nodejs。
|
|
|
|
|
|
|
|
|
|
全局安装vuepress
|
|
|
|
|
|
|
|
|
|
``` bash
|
|
|
|
|
npm i -g vuepress
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
cd到项目目录,然后开始构建。构建好的静态文档会出现在"./src/.vuepress/dist"中
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
vuepress build ./src
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 文档撰写
|
|
|
|
|
|
|
|
|
|
vuepress会启动一个本地服务器,并在浏览器对你保存的文档进行实时热更新。
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
vuepress dev ./src
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 社区资源
|
|
|
|
|
|
|
|
|
|
- Rust语言中文社区:[https://rust.cc/](https://rust.cc/)
|
|
|
|
|
- Rust 中文 Wiki:[https://wiki.rust-china.org/](https://wiki.rust-china.org/)
|
|
|
|
|
- Rust编程语言社区主群:303838735
|
|
|
|
|
- Rust 水群:253849562
|
|
|
|
|
|
|
|
|
|
## GitBook
|
|
|
|
|
|
|
|
|
|
本翻译主要采用 [mdBook](https://github.com/rust-lang-nursery/mdBook) 格式。同时支持 [GitBook](https://github.com/GitbookIO/gitbook),但会缺失部分功能,如一些代码没有语法高亮。
|
|
|
|
|
|
|
|
|
|
[GitBook.com](https://www.gitbook.com/) 地址:[https://www.gitbook.com/book/kaisery/trpl-zh-cn/details](https://www.gitbook.com/book/kaisery/trpl-zh-cn/details)
|