简体   繁体   中英

How to add a pluggin to gitbook?

I am a begginer but I am building a gitbook for a personnal project.

When you want to add a pluggin it is said that "Once you find a plugin that you want to install, you need to add it to your book.json:" here

I found the pluggin I want but I cannot find where I should install it? Where is that book.json "thing"? Do I need to have a github account to be able to do that?

Thanks a lot

I've looked arount there is no tutorial existing for that

In this question it is said that "Switch to FILES at the top of the left sidebar and then right click to create book.json" but i dont get it, in the files part I am asked to drop or select a file and when I right click it just shows the classic menu of a webpage right click

Well, you'd need to have some sort of git service/git host where you can store the source in which you can find the book.json . GitHub is one of them and you can easily integrate it with GitBook (hence the name Git Book).

Here is a link to the documentation explaining exactly how to set it up. Alternatively you can use GitLab or self-host (the other option) although GitHub should be the easiest to start with. And yes you need an account on there.

Enabling GitHub Sync

Enabling GitLab Sync

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM