gitbook-plugin-docsearch-v3

1.0.2 • Public • Published

DocSearch v3 plugin for HonKit / GitBook legacy

Installation

Using HonKit

npm install gitbook-plugin-docsearch-v3 --save-dev

Using GitBook Legacy

Follow the steps under Usage section, then run the following command:

gitbook install

Usage

Apply on https://docsearch.algolia.com/, to get free Algolia DocSearch credentials. Then On book.json, do the following steps:

  • Disable the search and lunr plugins (by adding - prefix on the plugin name).
  • Add the docsearch-v3 plugin.
  • specify your DocSearch credentials under pluginsConfig.docsearch.
{
    "plugins": [
        "-search",
        "-lunr",
        "docsearch-v3"
    ],
    "pluginsConfig": {
        "docsearch": {
            "appId": "<your-appId>",
            "apiKey": "<your-apiKey>",
            "indexName": "<your-indexName>"
        }
    }
}

License

MIT License

Author

Noval Agung Prayogo

Package Sidebar

Install

npm i gitbook-plugin-docsearch-v3

Weekly Downloads

73

Version

1.0.2

License

MIT

Unpacked Size

6.24 kB

Total Files

7

Last publish

Collaborators

  • novalagung