diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-27 22:45:30 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-27 22:45:30 +0100 |
commit | 999f8b481ff573ff540231319377921d32d654ec (patch) | |
tree | b3d7dfd5bd0f0baea6ef5dfb25c3fa71f54ce102 /docs | |
parent | 294951f22af41edbbe758fdcd0903195a332b524 (diff) | |
download | gitbook-999f8b481ff573ff540231319377921d32d654ec.zip gitbook-999f8b481ff573ff540231319377921d32d654ec.tar.gz gitbook-999f8b481ff573ff540231319377921d32d654ec.tar.bz2 |
Improve setup doc
Diffstat (limited to 'docs')
-rw-r--r-- | docs/setup.md | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/docs/setup.md b/docs/setup.md index 3ce416e..659df9f 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -27,12 +27,34 @@ $ npm install gitbook-cli -g `gitbook-cli` is an utility to install and use multiple versions of GitBook on the same system. It will automatically install the required version to build a book. -##### Using pre-releases +##### Create a book + +GitBook can setup a boilerplate book: + +``` +$ gitbook init +``` + +If you wish to create the book into a new directory, you can do so by running `gitbook init ./directory` + +Preview and serve your book using: + +``` +$ gitbook serve +``` + +or build the static website using: + +``` +$ gitbook build +``` + +##### Install pre-releases `gitbook-cli` makes it easy to install and test other versions of GitBook with your book: ``` -$ gitbook install beta +$ gitbook fetch beta ``` ##### Debugging |