mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
refactor: capitalize comments (#7188)
* refactor: capitalize comments * revert...
This commit is contained in:
parent
200009008b
commit
fa1ce230ea
99 changed files with 241 additions and 350 deletions
|
@ -11,7 +11,7 @@ import {useContextualSearchFilters} from '@docusaurus/theme-common';
|
|||
export function useAlgoliaContextualFacetFilters(): [string, string[]] {
|
||||
const {locale, tags} = useContextualSearchFilters();
|
||||
|
||||
// seems safe to convert locale->language, see AlgoliaSearchMetadata comment
|
||||
// Seems safe to convert locale->language, see AlgoliaSearchMetadata comment
|
||||
const languageFilter = `language:${locale}`;
|
||||
|
||||
const tagsFilter = tags.map((tag) => `docusaurus_tag:${tag}`);
|
||||
|
|
|
@ -99,7 +99,7 @@ function DocSearch({
|
|||
: // ... or use config facetFilters
|
||||
configFacetFilters;
|
||||
|
||||
// we let user override default searchParameters if he wants to
|
||||
// We let user override default searchParameters if she wants to
|
||||
const searchParameters: DocSearchProps['searchParameters'] = {
|
||||
...props.searchParameters,
|
||||
facetFilters,
|
||||
|
|
|
@ -12,7 +12,7 @@ import type {
|
|||
} from '@docusaurus/types';
|
||||
|
||||
export const DEFAULT_CONFIG = {
|
||||
// enabled by default, as it makes sense in most cases
|
||||
// Enabled by default, as it makes sense in most cases
|
||||
// see also https://github.com/facebook/docusaurus/issues/5880
|
||||
contextualSearch: true,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue