How to write Open Source Books with github
This article shows you how to use github to write open source books, concise and easy to understand, absolutely can make your eyes shine, through the detailed introduction of this article I hope you can gain something.
Writing books on github
Create a new warehouse
Create a new file, SUMMARY.md
Create a new file called SUMMARY.md and fill it with:
# Summary* [Preface](README.md)
1
2
1
2
Creating a book
First go to the official website of gitbook: https://www.gitbook.com/
Click the red part and log in with github.
After logging in, click +NewBook(or +NEW in the upper right corner, the page is slightly revised)
This page is currently synchronized. After synchronization is completed, you can see your own book (not for any reason, this interface will not jump, but in fact, you have received a notification email that has been created. You can see it when you open the homepage refresh).
Click edit, you can find that there is only one page inside, which is what we just wrote SUMMARY.md
add content
Let's step back and click edit.
You can see the following interface
Let's hit it.
Now we can complete our book entry, right-click in the directory area to create a new content page
Then you'll find another file on github, and that's the connection.
Let's look at SUMMARY again. There's an extra "first page" in it.
We double-click and find that it is a markdown hyperlink. It turns out that this is the way gitbook content is organized. Through hyperlinks, content is associated with files on github.
You can see that the directory structure has changed, and then the name has changed.
There's a trick to getting an address. Click on the file, email, rename it. Here you can see the full address of the file. Copy it.
Github binding domain name
The above is how to write open source books with github. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.