饭叔的知识整理

GitBook

在目录下建2个文件,README.md和SUMMARY.md SUMMARY.md格式如下

* [第一章](chapter1.md)
     * [第一节](chapter1/section2.md)
     * [第二节](chapter1/section2.md)
 * 第二章

执行gitbook serve

Starting server ...
Serving book on http://localhost:4000

打开 http://localhost:4000 就可以看到了

生成PDF

gitbook pdf .

google_code_prettify

npm install gitbook-plugin-google_code_prettify --save  
vim book.json 
{
    "plugins": ["google_code_prettify"]
}

参考

http://help.gitbook.com/
http://wanqingwong.com/gitbook-zh
http://www.chengweiyang.cn/gitbook
http://tonydeng.github.io/gitbook-zh/gitbook-howtouse/index.html http://plugins.gitbook.com/ http://help.gitbook.com/index.html http://plugins.gitbook.com/plugin/google_code_prettify https://www.npmjs.com/package/gitbook-plugin-google_code_prettify