Gitbook can be used to create an online ebook so that anyone on the Internet can see your work. How do you make an e-book?

1. Log on to making

Log in to GithHub, click the Code button, and then download the project. The downloaded file is decompressed into Markdown file format.

2. Login GitBook

GitBook official address: www.gitbook.com/

Open GitBook and log in using your Github account.

3. Create a file

Create a new project for your ebook and click on the project name to enter the project. For example, my new e-book here is called Illustrated SQL Interview Questions.

A “+” will appear when you place the mouse pointer over the arrow in the image below. Click “+” to create a new file.

Enter the file title in the red box and copy and paste the contents of the Markdwon file you downloaded earlier.

1) Insert the picture

Insert pictures: Since wechat links cannot be displayed on Gitbook, we need to download and upload pictures of each article to Gitbook.

Click the upward arrow in the upper left corner of the image to select Replace.

Click on the red box below to upload the picture

2) Change the code type

Click the up arrow in the upper left corner of the code and select the programming language for the book content. In this case, because I wrote the book in SQL, I changed the code to SQL display.

3) Add content

Place the mouse pointer to the left of the position you want to add (in the red box below), and a “+” sign will appear. Click and select to add content as you need.

When finished, click the Save button (red box below).

Click the Merge button and wait until it shows that the commit is successful before performing subsequent modification operations.

5. Update the contents of the book

Place the mouse pointer to the left of the position you want to add, a “+” sign appears, and select create a new paragraph

Enter the content, select the black box below, select the index button pointed to by the arrow

In the text box that is displayed, search for and select the name of the chapter to be added. 6. Final result Display

After following the above steps, the effect of the established ebook is as follows:

Even better, it also supports the search function. For example, if I want to see the content of “multi-table query”, I can click the following search to find the relevant content.

Address of my ebook “Illustrated SQL Interview Questions” on Gitbook

houzidata.gitbook.io/sql/

Recommendation: Data analysis thinking everyone needs