Skip to content

Commit

Permalink
Search correct language for Docusaurus docsearch (#744)
Browse files Browse the repository at this point in the history
* Remove duplicate search results

Only search the current version of the docs. Right now there are duplicates because `next` is also searched.

https://github.com/facebook/Docusaurus/blob/d28b864a59fabeea45add8c090a13de7d0530de5/lib/core/Site.js#L140 does the replacement

* Add language facet

* fix missing algoliaOptions

* use only language facetfilter
  • Loading branch information
JoelMarcey authored and endiliey committed Jun 18, 2018
1 parent f33d977 commit df42926
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ const siteConfig = {
algolia: {
apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c',
indexName: 'docusaurus',
algoliaOptions: {
facetFilters: [ "lang:LANGUAGE" ]
}
},
colors: {
primaryColor: '#2E8555',
Expand Down

0 comments on commit df42926

Please sign in to comment.