[英]How to install adsense plugin in Gitbook
The documentation for gitbook says the following: gitbook的文档显示以下内容:
Once you find a plugin that you want to install, you need to add it to your book.json: 找到要安装的插件后,需要将其添加到book.json中:
{
"plugins": ["myPlugin", "anotherPlugin"]
}
You can also specify a specific version using: "myPlugin@0.3.1". 您也可以使用以下格式指定特定版本:“ myPlugin@0.3.1”。 By default GitBook will resolve the latest version of the plugin compatible with the current GitBook version. 默认情况下,GitBook将解析与当前GitBook版本兼容的插件的最新版本。
However, I do not know where this file is (book.json)? 但是,我不知道此文件在哪里(book.json)?
I can see no links to even add a file called this in the edit section or settings section. 我看不到任何链接,甚至无法在编辑部分或设置部分中添加名为此文件的文件。 Please can someone explain to me how I get a plugin installed on my GitBooks, for example the Adsense plugin. 请有人告诉我如何在GitBooks上安装插件,例如Adsense插件。
I want to know, how to get this installed and also how to add the code to display the add on the page. 我想知道如何安装它,以及如何添加代码以在页面上显示添加内容。
Thank you 谢谢
切换到左侧边栏顶部的FILES,然后右键单击以创建book.json
。
You can try to use the full GitHub url with version: 您可以尝试在版本中使用完整的GitHub网址:
{
"plugins": [
"myplugin@git+https://github.com/MyCompany/mygitbookplugin.git#1.0.0"
]
}
https://toolchain.gitbook.com/plugins/create.html https://toolchain.gitbook.com/plugins/create.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.