feat(search): enable contextual search by default (#6407)

This commit is contained in:
Sébastien Lorber 2022-01-25 04:45:41 +01:00 committed by GitHub
parent 59022c5eea
commit dd539dd23f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 12 deletions

View file

@ -9,7 +9,9 @@ import {Joi} from '@docusaurus/utils-validation';
import type {ThemeConfig, Validate, ValidationResult} from '@docusaurus/types';
export const DEFAULT_CONFIG = {
contextualSearch: false, // future: maybe we want to enable this by default
// enabled by default, as it makes sense in most cases
// see also https://github.com/facebook/docusaurus/issues/5880
contextualSearch: true,
// By default, all Docusaurus sites are using the same AppId
// This has been designed on purpose with Algolia.