docs(v2): mention to install the algolia package in search doc (#4976)

This commit is contained in:
Sébastien Lorber 2021-06-15 16:14:03 +02:00 committed by GitHub
parent 208c089835
commit 9efa550cd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = {