diff --git a/website/docs/search.md b/website/docs/search.md index 76a9225b05..1103bf2724 100644 --- a/website/docs/search.md +++ b/website/docs/search.md @@ -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 diff --git a/website/versioned_docs/version-2.0.0-alpha.48/search.md b/website/versioned_docs/version-2.0.0-alpha.48/search.md index ce97f9ca7e..24ae9c4243 100644 --- a/website/versioned_docs/version-2.0.0-alpha.48/search.md +++ b/website/versioned_docs/version-2.0.0-alpha.48/search.md @@ -20,14 +20,16 @@ To connect your docs with Algolia, add an `algolia` field in your `themeConfig`. ```jsx {4-9} // docusaurus.config.js -themeConfig: { - // .... + 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 }, ``` diff --git a/website/versioned_docs/version-2.0.0-alpha.50/search.md b/website/versioned_docs/version-2.0.0-alpha.50/search.md index 0805afe0e9..21f1167462 100644 --- a/website/versioned_docs/version-2.0.0-alpha.50/search.md +++ b/website/versioned_docs/version-2.0.0-alpha.50/search.md @@ -19,14 +19,16 @@ Algolia DocSearch works by crawling the content of your website every 24 hours a 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/). ```jsx {3-8} title="docusaurus.config.js" -themeConfig: { + 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 }, ```