README.md 953 字节
Newer Older
D
dailidong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
GitBook plugin: Insert logo link
================================

NPM package [here](https://www.npmjs.com/package/gitbook-plugin-insert-logo-link)

```
npm i gitbook-plugin-insert-logo-link
```

The following plugin inserts a logo link into the navigation bar (above the summary and above the search input). Simply, drop a `logo.png` file into the root folder of your GitBook and add this plugin into your `book.json`:

```json
{
    "plugins": ["insert-logo-link", "another plugin 1", "another plugin 2"]
}
```

You will also need to provide src for the logo and the href for the link url. The src can be local file, a remote URL, or base64 hash. Add the src and url into the plugin configuration in your `book.json`:

```json
{
    "plugins": ["insert-logo-link", "another plugin 1", "another plugin 2"],
    "pluginsConfig": {
        "insert-logo-link": {
            "src": "/my-logo.png",
            url: "http://example"
        }
    }
}
```