From 999f8b481ff573ff540231319377921d32d654ec Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Sat, 27 Feb 2016 22:45:30 +0100 Subject: [PATCH] Improve setup doc --- docs/setup.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/docs/setup.md b/docs/setup.md index 3ce416ea4..659df9f75 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