From 69f94de6e1dfef25fa1b1bde9e1e4e9562e2e29e Mon Sep 17 00:00:00 2001 From: "Akhil a.k.a Enforcer007" Date: Thu, 31 Mar 2022 17:00:27 +0530 Subject: [PATCH] Guide to serve book locally in English and Chinese --- Readme.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index a86f17b..2521f21 100644 --- a/Readme.md +++ b/Readme.md @@ -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