This project uses GitBook!
Before we can begin, you will need a GitHub account; this will allow you to submit changes back to this project. Additionally, you will need a text editor (vim, emacs, joe, Atom, TextMate, you get the idea), since this project uses Markdown.
- Install nodejs
- Now we need to install the gitbook application using npm (part of nodejs), on the command line run the following:
npm install gitbook-cli -g
Once you have cloned this project from GitHub, you can run the following command inside the project folder to generate a live HTML preview.
OggBook:ITDRC-pocket-guide ogg$ gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...
info: 7 plugins are installed
info: loading plugin "livereload"... OK
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 1 pages
info: found 1 asset files
info: >> generation finished with success in 0.7s !
Starting server ...
Serving book on http://localhost:4000
Gitbook will start a local webserver at http://localhost:4000
, by default. While you are editing the markdown pages, the GitBook automatically will regenerate the HTML site.
Note: To generate epub and pdf outputs you will need to have Calibre installed. GitBook Documentation
# Generate a PDF file
$ gitbook pdf ./ ./output/ITDRC-pocket-guide.pdf
# Generate an ePub file
$ gitbook epub ./ ./output/ITDRC-pocket-guide.epub
# Generate an HTML (output in _book)
$ gitbook build