Gitbook is an open source book platform. Some of the company’s current development documents and usage documents are managed by Gitbook, which is very convenient to use. Therefore, I would like to share the creation method here

Install gitbook

Install the NPM

Download and install Node.js from nodejs.org/#download

After successful installation, open terminal input

npm -v
Copy the code

The following information is displayed:

The installation is successful.

Install gitbook

sudo npm install -g gitbook-cli
Copy the code

Terminal after successful installation:

Gitbook is successfully installed

Create a folder where you want to put your ebook

I created testBook in my user directory

Access the testBook currently created

touch README.md
Copy the code

Readme.md is the introduction to this book

Then continue to

touch SUMMARY.md
Copy the code

This is the table of contents of this book

Next, go to the testBook folder you created

Open it with the MarkDown tool or you can use a text editor (I’m using MacDown). The syntax is markDown syntax

Edit the SUMMARY

- [section1](chapter1/section1.md) - [section2](chapter1/section2.md) * (chapter2/section1.md) - (chapter2/section2.md) - (chapter2/section2.md) * (end/ readme.md)Copy the code

Then open the terminal into the current directory to run

Look again at the directory:

Continue running at the terminal

gitbook serve
Copy the code

At this point we’ll open a browser and type localhost:4000

E-books were created

Directory in testBook

Chapter1 Corresponding to chapter2

Canto ONE, canto two and so on

All you need to do is write in the corresponding.md file and follow markdown syntax

If you want to share what you have written, you need to create a book in GitBook using gitBook Editor

www.gitbook.com/editor

I’m not going to write this out because I’m Posting to an internal address