All Projects → chusiang → how-to-build-the-gitbook-with-gitbook-cli

chusiang / how-to-build-the-gitbook-with-gitbook-cli

Licence: GPL-2.0 license
如何藉由 gitbook-cli 來建置自己的 GitBook。

Programming Languages

Makefile
30231 projects

Projects that are alternatives of or similar to how-to-build-the-gitbook-with-gitbook-cli

Bookstack
BookStack,基于MinDoc,使用Beego开发的在线文档管理系统,功能类似Gitbook和看云。
Stars: ✭ 2,547 (+9696.15%)
Mutual labels:  gitbook
Knowledge
Everything I know
Stars: ✭ 2,982 (+11369.23%)
Mutual labels:  gitbook
Nodebook
nodejs 基础教程
Stars: ✭ 241 (+826.92%)
Mutual labels:  gitbook
Getting Started With Knative
Knative入门——构建基于 Kubernetes 的现代化Serverless应用 - https://www.servicemesher.com/getting-started-with-knative/
Stars: ✭ 197 (+657.69%)
Mutual labels:  gitbook
Prometheus Book
Prometheus操作指南
Stars: ✭ 2,637 (+10042.31%)
Mutual labels:  gitbook
Bookdown
Authoring Books and Technical Documents with R Markdown
Stars: ✭ 2,768 (+10546.15%)
Mutual labels:  gitbook
Spring Boot Book
Spring Boot 开源电子书
Stars: ✭ 178 (+584.62%)
Mutual labels:  gitbook
projects
A website that showcases interesting projects, using Angular JS.
Stars: ✭ 106 (+307.69%)
Mutual labels:  gitbook
Peiqi Wiki Poc
鹿不在侧,鲸不予游🐋
Stars: ✭ 179 (+588.46%)
Mutual labels:  gitbook
Centos Book
Web开发者手边的一本CentOS小书,是对 CentOS 系统知识的一个整理以及补完,当然对于其它 Linux 发行版本也有很大的参考意义,但的确针对的是目前 CentOS 的最新版本——CentOS 7
Stars: ✭ 241 (+826.92%)
Mutual labels:  gitbook
Bitcoin On Nodejs
《Node.js区块链开发》,注:新版代码已开源!请star支持哦-^-:
Stars: ✭ 2,321 (+8826.92%)
Mutual labels:  gitbook
Migrating To Cloud Native Application Architectures
《迁移到云原生应用架构》中文版 https://jimmysong.io/migrating-to-cloud-native-application-architectures/
Stars: ✭ 203 (+680.77%)
Mutual labels:  gitbook
Way To Algorithm
Algorithm Tutorial and Source Code
Stars: ✭ 221 (+750%)
Mutual labels:  gitbook
Automate With Ansible
《現代 IT 人一定要知道的 Ansible 自動化組態技巧》
Stars: ✭ 188 (+623.08%)
Mutual labels:  gitbook
A Programmer Prepares
📖《程序员的自我修养》
Stars: ✭ 250 (+861.54%)
Mutual labels:  gitbook
Git Tips
这里是我的笔记,记录一些git常用和一些记不住的命令。
Stars: ✭ 185 (+611.54%)
Mutual labels:  gitbook
Awesome React Native Web
💙 React Native Web patterns, techniques, tips, and tricks ✨
Stars: ✭ 215 (+726.92%)
Mutual labels:  gitbook
teslaapi.io
Unofficial Tesla API Documentation
Stars: ✭ 29 (+11.54%)
Mutual labels:  gitbook
gitbook-treeview
🌲 A gitbook plugin for generating tree view for ech page
Stars: ✭ 38 (+46.15%)
Mutual labels:  gitbook
Android Bookmark
【资料汇总】Android 资源知识大全 http://www.yundashi168.com/articles/2018/09/12/1536725366888.html
Stars: ✭ 235 (+803.85%)
Mutual labels:  gitbook

How to build the Gitbook with gitbook-cli

Need the package fo git, make, node.js, npm and gitbook-cli.

My private GitBook

Setup

  1. Install node.js and npm package.

     # Mac OSX.
     $ brew install node npm
    
     # Ubuntu.
     $ sudo apt-get install nodejs npm
    
  2. Install n with npm.

     $ sudo npm install n -g
    
  3. Downgrade node.js to v5.12.0. (see Build error with node v6 · Issue #1)

     $ n 5.12.0        
    
  4. Install gitbook-cli package.

     $ sudo npm install -g gitbook-cli
    
  5. Install necessary package with npm.

     $ gitbook install
    
  6. Check version.

     $ gitbook -V
     CLI version: 2.3.0
     GitBook version: 3.1.1
    
  7. Install calibre for build pdf, epub and mobi.

  8. Link calibre command line tool.

     # Mac OSX.
     $ ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin/
    

Get repository.

Get MyBook with git.

$ git clone https://github.com/chusiang/how-to-build-the-gitbook-with-gitbook-cli.git

Build

  1. Go to MyBook project.

     $ cd ${MyBook}
    
  2. Build static HTML.

     $ make
    
  3. Build PDF.

     $ make pdf
    
  4. Build epub for iDevice.

     $ make epub
    
  5. Build mobi for Kindle.

     $ make mobi
    
  6. Review result at local.

     $ make review
    
  7. Clean.

     $ make clean
    

Reference

CI

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].