mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
docs(v2): mention to install the algolia package in search doc (#4976)
This commit is contained in:
parent
208c089835
commit
9efa550cd5
1 changed files with 7 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue