Guide to serve book locally in English and Chinese

This commit is contained in:
Akhil a.k.a Enforcer007 2022-03-31 17:00:27 +05:30 committed by GitHub
parent 0b760f32aa
commit 69f94de6e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -26,9 +26,24 @@ This book was designed for easily diving into and get skilled with Rust, and it'
## Running locally
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
$ 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