mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 00:47:03 +02:00
Merge branch 'master' of github.com:facebook/docusaurus
This commit is contained in:
commit
901682ee46
3 changed files with 11 additions and 7 deletions
|
@ -16,7 +16,7 @@ Algolia DocSearch works by crawling the content of your website every 24 hours a
|
|||
|
||||
### Connecting Algolia
|
||||
|
||||
To connect your docs with Algolia, add an `algolia` field in your `themeConfig`. Note that you will need algolia API key and algolia index. You can [apply for DocSearch here](https://community.algolia.com/docsearch/).
|
||||
To connect your docs with Algolia, add an `algolia` field in your `themeConfig`. Note that you will need algolia API key and algolia index. You can [apply for DocSearch here](https://docsearch.algolia.com/apply/).
|
||||
|
||||
```jsx title="docusaurus.config.js"
|
||||
module.exports = {
|
||||
|
@ -25,9 +25,9 @@ module.exports = {
|
|||
// ...
|
||||
// highlight-start
|
||||
algolia: {
|
||||
appId: 'app-id',
|
||||
apiKey: 'api-key',
|
||||
indexName: 'index-name',
|
||||
appId: 'app-id', // Optional, if you run the DocSearch crawler on your own
|
||||
algoliaOptions: {}, // Optional, if provided by Algolia
|
||||
},
|
||||
// highlight-end
|
||||
|
|
|
@ -21,13 +21,15 @@ To connect your docs with Algolia, add an `algolia` field in your `themeConfig`.
|
|||
```jsx {4-9}
|
||||
// docusaurus.config.js
|
||||
themeConfig: {
|
||||
// ....
|
||||
// ...
|
||||
// highlight-start
|
||||
algolia: {
|
||||
appId: 'app-id',
|
||||
apiKey: 'api-key',
|
||||
indexName: 'index-name',
|
||||
appId: 'app-id', // Optional, if you run the DocSearch crawler on your own
|
||||
algoliaOptions: {}, // Optional, if provided by Algolia
|
||||
},
|
||||
// highlight-end
|
||||
},
|
||||
```
|
||||
|
||||
|
|
|
@ -21,12 +21,14 @@ To connect your docs with Algolia, add an `algolia` field in your `themeConfig`.
|
|||
```jsx {3-8} title="docusaurus.config.js"
|
||||
themeConfig: {
|
||||
// ...
|
||||
// highlight-start
|
||||
algolia: {
|
||||
appId: 'app-id',
|
||||
apiKey: 'api-key',
|
||||
indexName: 'index-name',
|
||||
appId: 'app-id', // Optional, if you run the DocSearch crawler on your own
|
||||
algoliaOptions: {}, // Optional, if provided by Algolia
|
||||
},
|
||||
// highlight-end
|
||||
},
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue