mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
Search correct language for Docusaurus docsearch (#744)
* Remove duplicate search results
Only search the current version of the docs. Right now there are duplicates because `next` is also searched.
d28b864a59/lib/core/Site.js (L140)
does the replacement
* Add language facet
* fix missing algoliaOptions
* use only language facetfilter
This commit is contained in:
parent
f33d977d1a
commit
df42926242
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ const siteConfig = {
|
||||||
algolia: {
|
algolia: {
|
||||||
apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c',
|
apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c',
|
||||||
indexName: 'docusaurus',
|
indexName: 'docusaurus',
|
||||||
|
algoliaOptions: {
|
||||||
|
facetFilters: [ "lang:LANGUAGE" ]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
primaryColor: '#2E8555',
|
primaryColor: '#2E8555',
|
||||||
|
|
Loading…
Add table
Reference in a new issue