|
|
@ -34,11 +34,7 @@ type DocSearchProps = Parameters<typeof docsearch>[0]
|
|
|
|
function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
|
|
|
|
function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
|
|
|
|
// note: multi-lang search support is removed since the theme
|
|
|
|
// note: multi-lang search support is removed since the theme
|
|
|
|
// doesn't support multiple locales as of now.
|
|
|
|
// doesn't support multiple locales as of now.
|
|
|
|
const options = Object.assign<
|
|
|
|
const options = Object.assign<{}, {}, DocSearchProps>({}, userOptions, {
|
|
|
|
{},
|
|
|
|
|
|
|
|
DefaultTheme.AlgoliaSearchOptions,
|
|
|
|
|
|
|
|
DocSearchProps
|
|
|
|
|
|
|
|
>({}, userOptions, {
|
|
|
|
|
|
|
|
container: '#docsearch',
|
|
|
|
container: '#docsearch',
|
|
|
|
|
|
|
|
|
|
|
|
navigator: {
|
|
|
|
navigator: {
|
|
|
|