gitbook-plugin-insert-title

0.2.5 • Public • Published

GitBook plugin: Insert title

NPM package here

npm i gitbook-plugin-insert-title

The following plugin is derived from insert-logo, and it inserts a title 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:

{
    "plugins": ["insert-title", "another plugin 1", "another plugin 2"]
}

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

{
    "plugins": ["insert-title", "another plugin 1", "another plugin 2"],
    "pluginsConfig": {
        "insert-title": {
            "url": "http://www.example.com/my-logo.png",
            "title": "Book Title",
            "style": "background: none;"
        }
    }
}

Package Sidebar

Install

npm i gitbook-plugin-insert-title

Weekly Downloads

5

Version

0.2.5

License

none

Unpacked Size

7.37 kB

Total Files

6

Last publish

Collaborators

  • micastle