Merge pull request #190 from Enforcer007/patch-1

Guidelines to serve book locally in English and Chinese
This commit is contained in:
Sunface
2022-03-31 19:44:29 +08:00
committed by GitHub

View File

@ -26,9 +26,24 @@ This book was designed for easily diving into and get skilled with Rust, and it'
## Running locally ## Running locally
We use [mdbook](https://rust-lang.github.io/mdBook/) building our exercises. You can run locally with below steps: We use [mdbook](https://rust-lang.github.io/mdBook/) building our exercises. You can run locally with below steps:
- Clone the repo
```shell
$ git clone git@github.com:sunface/rust-by-practice.git
```
- Install mdbook using Cargo
```shell ```shell
$ cargo install mdbook $ cargo install mdbook
$ cd rust-by-practice && mdbook serve ```
- For Book in English
```shell
$ cd rust-by-practice && mdbook serve en/
```
- For Book in Chinese
```shell
$ cd rust-by-practice && mdbook serve zh-CN/
``` ```
## Features ## Features