简体   繁体   English

如何将插件添加到gitbook?

[英]How to add a pluggin to gitbook?

I am a begginer but I am building a gitbook for a personnal project.我是初学者,但我正在为个人项目构建一个 gitbook。

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当你想添加一个插件时,据说“一旦你找到你想要安装的插件,你需要将它添加到你的书。json:” 这里

I found the pluggin I want but I cannot find where I should install it?我找到了我想要的插件,但我找不到我应该在哪里安装它? Where is that book.json "thing"?那本书 json“东西”在哪里? Do I need to have a github account to be able to do that?我是否需要拥有 github 帐户才能执行此操作?

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 在这个问题中,据说“切换到左侧边栏顶部的文件,然后右键单击以创建 book.json”,但我不明白,在文件部分,我被要求删除或 select 一个文件,当我右键单击它只是显示网页右键单击的经典菜单

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 .好吧,您需要某种 git 服务/git 主机,您可以在其中存储可以找到book.json的源代码。 GitHub is one of them and you can easily integrate it with GitBook (hence the name Git Book). GitHub 就是其中之一,您可以轻松地将它与 GitBook 集成(因此得名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.或者,您可以使用 GitLab 或自托管(另一个选项),尽管 GitHub 应该是最容易开始的。 And yes you need an account on there.是的,您需要一个帐户。

Enabling GitHub Sync 启用 GitHub 同步

Enabling GitLab Sync 启用 GitLab 同步

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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