From 9efa550cd5422d7cd3f6c308ff65a3a2324e5f51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Tue, 15 Jun 2021 16:14:03 +0200 Subject: [PATCH] docs(v2): mention to install the algolia package in search doc (#4976) --- website/docs/search.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/docs/search.md b/website/docs/search.md index 3ec02e760c..b22ef0ed47 100644 --- a/website/docs/search.md +++ b/website/docs/search.md @@ -18,7 +18,13 @@ If your website is [not eligible](https://docsearch.algolia.com/docs/who-can-app ### Connecting Algolia {#connecting-algolia} -To connect your docs with Algolia, add an `algolia` field in your `themeConfig`. **[Apply for DocSearch](https://docsearch.algolia.com/apply/)** to get your Algolia index and API key. +To connect your docs with Algolia, first add the package to your website: + +```bash npm2yarn +npm install --save @docusaurus/theme-search-algolia +``` + +Then, add an `algolia` field in your `themeConfig`. **[Apply for DocSearch](https://docsearch.algolia.com/apply/)** to get your Algolia index and API key. ```jsx title="docusaurus.config.js" module.exports = {