Algolia DocSearch v3 plugin for HonKit / GitBook legacy
npm install gitbook-plugin-docsearch-v3 --save-devFollow the steps under Usage section first, then run the following command:
gitbook installApply on https://docsearch.algolia.com/ to get free Algolia DocSearch credentials. Next, on book.json do the following steps:
- Disable the
searchandlunrplugins (by adding-prefix on the plugin name). - Add the
docsearch-v3plugin. - Specify your DocSearch credentials under
pluginsConfig.docsearch.
{
"plugins": [
"-search",
"-lunr",
"docsearch-v3"
],
"pluginsConfig": {
"docsearch": {
"appId": "<your-appId>",
"apiKey": "<your-apiKey>",
"indexName": "<your-indexName>"
}
}
}