Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 820 Bytes

how-to-use-gitbook.md

File metadata and controls

29 lines (27 loc) · 820 Bytes

How to use GitBook?

1. GitBook Toolchain Installation

npm install gitbook-cli -g

Refer to GitBook Toolchain Documentation for details.

2. Workflow

  1. Create a free account on GitBook.
  2. Create a new book on GitBook, for example: my-first-book
  3. Open a terminal, and run following commands:
git clone https://git.gitbook.com/feici02/my-first-book.git
cd my-first-book
gitbook serve
  1. The book is served at: http://localhost:4000
  2. Make some changes to this book, for example: add a new chapter.
  3. Run following commands to check-in your changes:
git add -A
git commit -m "add a new chapter"
  1. Run following commands to push your changes to GitBook:
git push -u origin master
  1. The book is served on GitBook.