Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gitbook-plugin-favicon-custom

This is GitBook plugin for custom favicon

readme

gitbook-plugin-favicon-custom

将自己的图标添加到gitbook主题。 favicon.ico和apple-touch-icon-precomposed-152.png

插件删除位于"_book/gitbook/images/favicon.ico"的gitbook favicon,用自己的favicon代替。apple-touch-icon-precomposed-152.png同理

Install via gitbook

In book.json

  • 添加 plugin-favicon-customplugins 数组中
  • pluginsConfig中配置favicon的路径

book.json

{
    "plugins" : ["favicon-custom"],
    "pluginsConfig" : {
        "favicon": "path/favicon.ico",
        "appleTouchIconPrecomposed152": "path/logo.png"
    }
}

using gitbook-cli

gitbook install