插件

插件是扩展GitBook功能(电子书和网站)的最佳方式。有很多插件可以做很多事情:带来数学公式显示支持,使用Google Analytic跟踪访问等。

通过plugins.gitbook.com轻松搜索插件。

安装插件

将需要的插件添加到book.json中:

{
    "plugins": ["myPlugin", "anotherPlugin"]
}

使用“[email protected]”指定特定版本。默认情况下,GitBook将使用当前的GitBook版本解析最新版本的插件。

运行gitbook install来安装和准备您书籍的所有插件。

配置插件

插件特定的配置存储在pluginsConfig中。您必须参考插件本身的文档以获取有关可用选项的详细信息。


results matching ""

    No results matching ""