refactor: capitalize comments (#7188)

* refactor: capitalize comments

* revert...
This commit is contained in:
Joshua Chen 2022-04-17 16:39:11 +08:00 committed by GitHub
parent 200009008b
commit fa1ce230ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 241 additions and 350 deletions

View file

@ -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}`);

View file

@ -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,

View file

@ -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,