Skip to content

novalagung/gitbook-plugin-docsearch-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algolia 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 first, then run the following command:

gitbook install

Usage

Apply on https://docsearch.algolia.com/ to get free Algolia DocSearch credentials. Next, 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