Go here. Note that plug-in material won't render properly, e.g. equations.
You'll need npm.
Install the gitbook client if you haven't already:
$ npm install gitbook-cli -gCopy the repository and run the following commands from the top directory:
$ gitbook install
$ gitbook serveGo to: http://localhost:4000
$ npm install gitbook-cli -gCreate new directory
$ mkdir my-book
$ cd my-book
$ gitbook initTo preview the book and make live edits:
$ gitbook serveTo build static website:
$ gitbook buildTo have separate documentation and code, create a book.json file with the following content:
{
"root": "./docs"
}and place all files inside a folder called 'docs'.
Add the following line to your book.json file:
{
"plugins": ["mathjax"]
}If you are exporting to PDF, you will find a bug when using this version of mathjax (as of 11 Dec 2018).
This fix consists of using a forked version of mathjax, namely:
{
"plugins": ["mathjax@https://github.com/OrgVue/gitbook-plugin-mathjax.git#speech-fix"]
}and installing the following package:
$ npm install svgexport -gInstall the plugin from within your gitbook directory
$ gitbook installPandoc is a great tool for this. For small sections, the online tool is generally sufficient.
Add the following plug-in to your book.json file:
{
"plugins": ["expandable-chapters"]
}Install the plug-in by running:
$ gitbook installSee here.
You'll need to make a Disqus account if you don't already have one.
Edit the book.json file as described here.
Install the plug-in by running:
$ gitbook installSee here.
See here.