devdiary

$ npm install gitbook -g
$ gitbook init
$ gitbook serve ./repository
$ gitbook build ./repository --output=./outputFolder

Generate book

gitbook pdf|epub|mobi ./myrepo

SUMMARY.md

# Summary

This is the summary of my book.

* [section 1](section1/README.md)
    * [example 1](section1/example1.md)
    * [example 2](section1/example2.md)
* [section 2](section2/README.md)
    * [example 1](section2/example1.md)