How to use GitBook?

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
    
  4. The book is served at: http://localhost:4000
  5. Make some changes to this book, for example: add a new chapter.
  6. Run following commands to check-in your changes:
    git add -A
    git commit -m "add a new chapter"
    
  7. Run following commands to push your changes to GitBook:
    git push -u origin master
    
  8. The book is served on GitBook.

results for ""

    No results matching ""