Gitbook is a command-line tool (node. JS Library) that we can borrow to make beautiful books using Github/git and markdown, but it's not a tutorial on git.
Supports multiple formats for output
Gitbook supports the output of multiple document formats, such as:
- Static site: Gitbook The default output of this format, the resulting static site can be directly hosted on the GitHub pages service;
- PDF: Need to install gitbook-pdf dependency;
- EBook: Need to install ebook-convert;
- Single HTML page: supports the output of the content as a single page of HTML, but generally used in the conversion of e-book format to PDF or ebook intermediate process;
- JSON: Typically used for e-book debugging or metadata extraction.
Simple structure
Two files required to make an ebook using Gitbook:
readme.mdAnd
summary.md。 README.MD is an introduction to e-book, summary.md is used to define the structure of ebook chapters, such as:
Gitbook also supports interactive content embedded in JavaScript, which will support languages such as Python and Ruby in future versions.
Example
- Learn JavaScript
- How to make an Operating System
Gitbook Project official website : Http://www.gitbook.io
gitbook GitHub Address: Https://github.com/GitbookIO/gitbook
Gitbook is a command-line tool (node. JS Library) that we can borrow to make beautiful books using Github/git and markdown, but it's not a tutorial on git.