mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
chore(v2): enable new contextual search feature (#3591)
This commit is contained in:
parent
21264f5ed0
commit
aed1ce7850
2 changed files with 1 additions and 6 deletions
|
@ -43,8 +43,6 @@ function DocSearch({contextualSearch, ...props}) {
|
|||
...props.searchParameters,
|
||||
};
|
||||
|
||||
console.log('searchParameters', contextualSearch, searchParameters);
|
||||
|
||||
const {withBaseUrl} = useBaseUrlUtils();
|
||||
const history = useHistory();
|
||||
const searchButtonRef = useRef(null);
|
||||
|
|
|
@ -249,10 +249,7 @@ module.exports = {
|
|||
algolia: {
|
||||
apiKey: '47ecd3b21be71c5822571b9f59e52544',
|
||||
indexName: 'docusaurus-2',
|
||||
// contextualSearch: true,
|
||||
searchParameters: {
|
||||
facetFilters: [`version:current`],
|
||||
},
|
||||
contextualSearch: true,
|
||||
},
|
||||
navbar: {
|
||||
hideOnScroll: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue