Gitbook super detailed tutorial, build your own blog!

Introduction

Gitbook is a platform that allows users to create and share content-rich online books. It has a user-friendly interface to quickly write, edit and publish your ebooks. Here is a basic steps to follow Gitbook

sync with github

1. Create a space

Open the GitBook official website , here I choose to use the github account to log in, of course you can also create a new account yourself

image-20230725161711515

Click the plus sign in the lower left corner and choose New spaceto create a new Gitbook space

image-20230725111536004

2. Install the github plugin

Click above integrationsand selectGithub Files

image-20230725111637058 image-20230725111643459

Click Installto install the github plugin

image-20230725111938696

After installing the plug-in, you need to click Authorizeto grant gitbook and github synchronization permission, and then a browser box will pop up (you may need to log in to your github), clickAuthorize GitbookIO

image-20230725112246192 image-20230725112329817

3. Synchronize github

Return to the space page, click Sync with Githubto indicate that this space will be synchronized with github

image-20230725155306916

where Synchronize with Git, Providertick theGithub

image-20230725155400908

at Configuration, click Connect with Github, and selectInstall Github application

image-20230725155427566 image-20230725155453201

The pop-up page allows you to install Gitbook, clickInstall

image-20230725155545507

Select your Github account, repository and branch, then click synchronizeStart Synchronization

image-20230725155718068 image-20230725155817170

The synchronization is completed as shown in the figure below

image-20230725155905395

4. Generate space url

You can see in the space that the content of the github article has been synchronized to gitbook. If you want others to see it, you need to click on the upper right cornerShare

image-20230725160400226

Publish to the webCheck here , Publish this space to the weband then it will generate the url link of your note, for example, here I am https://aptboys.gitbook.io/demo1

image-20230725160445935

Access the generated url link, the effect is as shown in the figure below

image-20230725160714932

Blog Building Guide

1. Custom domain name

Click the setting option of the organization you created, for example, the organization I created here is AptBoys, I will clickAptBoys Settings

image-20230731161523335

Find it in the General option block Custom domain, click Edit domainCustomize the domain name of your blog

image-20230731161826751

Fill in your third-level domain name, for example, here is mine www.henry666.xyz, the domain name henry666.xyzis applied on godaddy (no domain name registration required)

image-20230731162005376

Add the fields of the DNS record and their corresponding values ​​to the DNS management record of your domain name. The dns record to be added here is www of CNAME type, pointing to the gitbook URL

image-20230731162704872 image-20230731163123174

The final step is to verify that your domain name is configured correctly

image-20230731163220710

2. Publish blog content

Created Collectionand can be used to store multiple spaces, which is convenient for synchronizing with articles in the github repository

image-20230731164636125

Publish the created collection to the web

image-20230731164840656

The next step is very important. The space in the collection needs to be published on the Web. Here, selectPublish in collection

image-20230731165021217

The final blog effect is shown in the figure below:

image-20230731165207911

3. Set the domain name default page

Go to the settings page, find Default Contentand click to Change default contentmodify the default domain name page

image-20230731232149280

Select the Collection you created earlier

image-20230731232255893

When you visit your domain name, you will be redirected to Collectionthe page. For example, if I visit my domain name www.henry666.xyz, it will automatically jump towww.henry666.xyz/henryblog/

image-20230731232327530

4. Interface settings

Click Collection CustomizationCustomize Blog Interface, Title&Iconyou can set your blog title and display icon, and you can see the modified blog interface in real time in the left column

image-20230801155139981

Default spaceYou can set the default space of the blog and Themesset the theme of the blog

image-20230801155333207

ConfigureYou can check it here to Enable lens semantic searchstart the AI ​​search engine

image-20230801155426822

Precautions

1. The markdown file name of the github warehouse is best not to have spaces. In other words, the file directory where you store pictures cannot have spaces, so that your picture files cannot be displayed on the page.

2. Let’s write when we meet later, hee hee

End

Guess you like

Origin blog.csdn.net/xf555er/article/details/132418146