使用 GitBook 寫開源書
GitBook 讓你在保持 使用 Markdown 的書寫習慣外,稍加配置,就能自動發布到 GitBook 上,形成界面漂亮的各種電子書了(支持 html, pdf , ePUB, MOBI 等)。
Usage 1 用法一 使用模板快速開始
https://github.com/waylau/gitbook 這是個快速開始 GitBook 的模板項目,根據項目的結構,稍作修改,就能生成自己的電子書。
Installation 安裝
$ npm install gitbook -g
Checkout the repository 檢出模板項目
$ git clone https://github.com/waylau/gitbook.git
Build 編譯
$ gitbook build ./
This is a _book
directory was created.
Run 運行
run the index.html
in the _book
directory .
打開該目錄,右鍵運行 index.html 即可看到 gitbook 的效果
Usage 2 用法二 手動創建項目
Create a SUMMARY.md file 編輯 SUMMARY.md 文件
Edit content like:
# Summary
This is the summary of my book.
- section 1
- section 2
- example 1</code></pre>
Create the directories and files for a book from its SUMMARY.md file using 根據 SUMMARY.md 自動生成目錄結構
$ gitbook init
Build 編譯
$ gitbook build ./
Run 運行
</div>
來自:http://www.waylau.com/about-gitbook/
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!