Algolia DocSearch v3 plugin for HonKit / GitBook legacy
npm install gitbook-plugin-docsearch-v3 --save-dev
Follow the steps under Usage section first, then run the following command:
gitbook install
Apply on https://docsearch.algolia.com/ to get free Algolia DocSearch credentials. Next, on book.json
do the following steps:
- Disable the
search
andlunr
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>"
}
}
}