Skip to content

Commit

Permalink
fix(docs): mention that appID is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Pace committed Apr 25, 2020
1 parent fed12e4 commit cd2d23a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions website/docs/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
Expand Down
8 changes: 5 additions & 3 deletions website/versioned_docs/version-2.0.0-alpha.48/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
```

Expand Down
6 changes: 4 additions & 2 deletions website/versioned_docs/version-2.0.0-alpha.50/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
```

Expand Down

0 comments on commit cd2d23a

Please sign in to comment.