diff --git a/website/docs/search.md b/website/docs/search.md index eae707fd78..85e0e1380f 100644 --- a/website/docs/search.md +++ b/website/docs/search.md @@ -75,7 +75,12 @@ module.exports = { // ... // highlight-start algolia: { - apiKey: 'YOUR_API_KEY', + // If Algolia did not provide you any appId, use 'BH4D9OD16A' + appId: 'YOUR_APP_ID', + + // Public API key: it is safe to commit it + apiKey: 'YOUR_SEARCH_API_KEY', + indexName: 'YOUR_INDEX_NAME', // Optional: see doc section below @@ -131,24 +136,6 @@ When using `contextualSearch: true`, the contextual facet filters will be merged ::: -### Custom Application ID {#custom-application-id} - -When [running your own](https://docsearch.algolia.com/docs/run-your-own/) DocSearch crawler, it is [required to set the `appId` configuration key](https://docsearch.algolia.com/docs/behavior/#appid) to your own Application ID. If left unset, the `appId` will fallback to the one used with the free, hosted version of Algolia DocSearch. - -```jsx title="docusaurus.config.js" -module.exports = { - // ... - themeConfig: { - // ... - // highlight-start - algolia: { - appId: 'YOUR_APP_ID', - }, - // highlight-end - }, -}; -``` - ### Styling your Algolia search {#styling-your-algolia-search} By default, DocSearch comes with a fine-tuned theme that was designed for accessibility, making sure that colors and contrasts respect standards. diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 3edb71d780..5789a7b237 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -318,7 +318,8 @@ const config = { } : undefined, algolia: { - apiKey: '47ecd3b21be71c5822571b9f59e52544', + appId: 'X1Z85QJPUV', + apiKey: 'bf7211c161e8205da2f933a02534105a', indexName: 'docusaurus-2', contextualSearch: true, },