mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 09:57:03 +02:00
Fix broken search guide formatting
This commit is contained in:
parent
976df54419
commit
902db36edb
1 changed files with 16 additions and 16 deletions
|
@ -22,22 +22,22 @@ const siteConfig = {
|
|||
...
|
||||
};
|
||||
```
|
||||
-## Extra Search Options
|
||||
-
|
||||
-You can also specify extra [search options used by Algolia](https://community.algolia.com/docsearch/documentation/) by using an `algoliaOptions` field in `algolia`. This may be useful if you want to provide different search results for the different versions or languages of your docs. Any occurrences of "VERSION" or "LANGUAGE" will be replaced by the version or language of the current page, respectively. More details about search options can be [found here](https://www.algolia.com/doc/api-reference/api-parameters/#overview).
|
||||
-
|
||||
-```js
|
||||
-const siteConfig = {
|
||||
- ...
|
||||
- algolia: {
|
||||
- ...
|
||||
- algoliaOptions: {
|
||||
- facetFilters: [ 'tags:VERSION' ],
|
||||
- hitsPerPage: 5
|
||||
- }
|
||||
- },
|
||||
-};
|
||||
-``
|
||||
|
||||
## Extra Search Options
|
||||
|
||||
You can also specify extra [search options used by Algolia](https://community.algolia.com/docsearch/documentation/) by using an `algoliaOptions` field in `algolia`. This may be useful if you want to provide different search results for the different versions or languages of your docs. Any occurrences of "VERSION" or "LANGUAGE" will be replaced by the version or language of the current page, respectively. More details about search options can be [found here](https://www.algolia.com/doc/api-reference/api-parameters/#overview).
|
||||
|
||||
```js
|
||||
const siteConfig = {
|
||||
...
|
||||
algolia: {
|
||||
...
|
||||
algoliaOptions: {
|
||||
facetFilters: [ "lang:LANGUAGE", "version:VERSION" ]
|
||||
}
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
Algolia might provide you with [extra search options](https://community.algolia.com/docsearch/documentation/). If so, you should add them to the `algoliaOptions` object.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue