mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 16:52:39 +02:00
chore: upgrade docsearch-react to v3 stable, bump dependencies (#6752)
* chore: upgrade dependencies * revert * validation * fix blog * reformat
This commit is contained in:
parent
a70514205d
commit
dcbf9f644e
29 changed files with 687 additions and 496 deletions
|
@ -13,10 +13,6 @@ export const DEFAULT_CONFIG = {
|
|||
// 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.
|
||||
appId: 'BH4D9OD16A',
|
||||
|
||||
searchParameters: {},
|
||||
searchPagePath: 'search',
|
||||
};
|
||||
|
@ -27,7 +23,10 @@ export const Schema = Joi.object({
|
|||
contextualSearch: Joi.boolean().default(DEFAULT_CONFIG.contextualSearch),
|
||||
externalUrlRegex: Joi.string().optional(),
|
||||
// Algolia attributes
|
||||
appId: Joi.string().default(DEFAULT_CONFIG.appId),
|
||||
appId: Joi.string().required().messages({
|
||||
'any.required':
|
||||
'"algolia.appId" is required. If you haven\'t migrated to the new DocSearch infra, please refer to the blog post for instructions: https://docusaurus.io/blog/2021/11/21/algolia-docsearch-migration',
|
||||
}),
|
||||
apiKey: Joi.string().required(),
|
||||
indexName: Joi.string().required(),
|
||||
searchParameters: Joi.object()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue