From ea0d1d40c67eb1ff0d3cdab0db0ff964a34da975 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Mon, 17 Jun 2019 20:20:22 -0700 Subject: [PATCH] Add notes on building the book and running server --- building_the_book.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/building_the_book.md b/building_the_book.md index 69f323e..09c89e2 100644 --- a/building_the_book.md +++ b/building_the_book.md @@ -6,6 +6,17 @@ Before doing anything else, install the legacy command line for gitbook: npm install -g gitbook-cli ``` +There is a `Makefile` in the repo that can help building the book easier. To build and run the docs site http server locally: + +```bash +make && make serve +... +info: >> generation finished with success in 45.3s ! + +Starting server ... +Serving book on http://localhost:4000 +``` + Docs are available as separate items in https://github.com/GitbookIO/gitbook/tree/6efbb70c3298a9106cb2083648624fd1b7af51c0/docs. All of the links go to the new site so you have to poke around manually. The build uses https://github.com/Bandwidth/gitbook-plugin-include-html to include html directly for code examples as well as the prism plugin, https://github.com/gaearon/gitbook-plugin-prism, to handle code highlighting. CSS for code highlighting seems to get mucked up sometimes if you don't use the default them, this is something to work on in the future. We are also using https://github.com/poojan/gitbook-plugin-toggle-chapters, tried https://github.com/rtCamp/gitbook-plugin-collapsible-menu but it messed up the HTML. @@ -20,4 +31,4 @@ To build the examples or just use the make file `make` will download the gitbook plugins, build the example html and build the book. -`make serve` will just serve the files without all the other prep work. \ No newline at end of file +`make serve` will just serve the files without all the other prep work.