From 99943a6041b8fba50267a3dfe00b201b2e83bef2 Mon Sep 17 00:00:00 2001 From: Theodore Chu Date: Tue, 17 Mar 2020 02:25:48 -0700 Subject: [PATCH] docs(v2): include appId key for Algolia (#2413) * Update Algolia information appId is needed for self-hosted Docsearch * Update Algolia Information https://github.com/facebook/docusaurus/pull/2413 * Update Algolia Information for alpha.40 * Update search.md Co-authored-by: Alexey Pyltsyn --- website/docs/search.md | 3 ++- website/versioned_docs/version-2.0.0-alpha.40/search.md | 3 ++- website/versioned_docs/version-2.0.0-alpha.43/search.md | 3 ++- website/versioned_docs/version-2.0.0-alpha.48/search.md | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/website/docs/search.md b/website/docs/search.md index d2e33f4d84..ce97f9ca7e 100644 --- a/website/docs/search.md +++ b/website/docs/search.md @@ -18,11 +18,12 @@ 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 {4-8} +```jsx {4-9} // docusaurus.config.js themeConfig: { // .... algolia: { + appId: 'app-id', apiKey: 'api-key', indexName: 'index-name', algoliaOptions: {}, // Optional, if provided by Algolia diff --git a/website/versioned_docs/version-2.0.0-alpha.40/search.md b/website/versioned_docs/version-2.0.0-alpha.40/search.md index b9a89d1da8..944c469db5 100644 --- a/website/versioned_docs/version-2.0.0-alpha.40/search.md +++ b/website/versioned_docs/version-2.0.0-alpha.40/search.md @@ -18,11 +18,12 @@ 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 {4-8} +```jsx {4-9} // docusaurus.config.js themeConfig: { // .... algolia: { + appId: 'app-id', apiKey: 'api-key', indexName: 'index-name', algoliaOptions: {}, // Optional, if provided by Algolia diff --git a/website/versioned_docs/version-2.0.0-alpha.43/search.md b/website/versioned_docs/version-2.0.0-alpha.43/search.md index f8048edfe5..2358fff6f5 100644 --- a/website/versioned_docs/version-2.0.0-alpha.43/search.md +++ b/website/versioned_docs/version-2.0.0-alpha.43/search.md @@ -18,11 +18,12 @@ 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 {4-8} +```jsx {4-9} // docusaurus.config.js themeConfig: { // .... algolia: { + appId: 'app-id', apiKey: 'api-key', indexName: 'index-name', algoliaOptions: {}, // Optional, if provided by Algolia 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 d2e33f4d84..ce97f9ca7e 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 @@ -18,11 +18,12 @@ 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 {4-8} +```jsx {4-9} // docusaurus.config.js themeConfig: { // .... algolia: { + appId: 'app-id', apiKey: 'api-key', indexName: 'index-name', algoliaOptions: {}, // Optional, if provided by Algolia