1.0.2 • Published 3 years ago
gitbook-plugin-docsearch-v3 v1.0.2
DocSearch v3 plugin for HonKit / GitBook legacy
Installation
Using HonKit
npm install gitbook-plugin-docsearch-v3 --save-devUsing GitBook Legacy
Follow the steps under Usage section, then run the following command:
gitbook installUsage
Apply on https://docsearch.algolia.com/, to get free Algolia DocSearch credentials. Then 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>"
}
}
}