You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 758f233
Browse filesBrowse the repository at this point in the historyBrowse files
break: remove old v2 and v3 migration errors for renamed and removed options (AI-assisted) (#12703)
Remove the dedicated migration errors for options renamed or removed in
Docusaurus v2 (and v3 for the admonitions `tag` option). Users had two major
versions to migrate.
- theme-classic: disableDarkMode, defaultDarkMode, navbar.links,
colorMode.switchConfig, metadatas, sidebarCollapsible, hideableSidebar,
autoCollapseSidebarCategories
- docs: homePageId
- pwa: reloadPopup
- sitemap: cacheTime, trailingSlash
- preset-classic: themeConfig.gtag
- utils-validation: admonitions tag
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
'The docs plugin option homePageId is not supported anymore. To make a doc the "home", please add "slug: /" in its front matter. See: https://docusaurus.io/docs/next/docs-introduction#home-page-docs',
'The reloadPopup option is removed in favor of swizzling. See https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-pwa#customizing-reload-popup for how to customize the reload popup using swizzling.',
'The "gtag" field in themeConfig should now be specified as option for plugin-google-gtag. For preset-classic, simply move themeConfig.gtag to preset options. More information at https://github.com/facebook/docusaurus/pull/5832.',
56
-
);
57
-
}
58
-
59
53
// TODO Docusaurus v5: remove
60
54
if ('googleAnalytics' in opts || 'googleAnalytics' in themeConfig) {
`[ValidationError: colorMode.switchConfig is deprecated. If you want to customize the icons for light and dark mode, swizzle IconLightMode, IconDarkMode, or ColorModeToggle instead.]`,
'colorMode.switchConfig is deprecated. If you want to customize the icons for light and dark mode, swizzle IconLightMode, IconDarkMode, or ColorModeToggle instead.',
'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
364
-
}),
365
-
// TODO temporary (@alpha-58)
366
-
defaultDarkMode: Joi.any().forbidden().messages({
367
-
'any.unknown':
368
-
'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
369
-
}),
370
355
colorMode: ColorModeSchema,
371
356
image: Joi.string(),
372
357
docs: DocsSchema,
373
358
blog: BlogSchema,
374
359
metadata: Joi.array()
375
360
.items(HtmlMetadataSchema)
376
361
.default(DEFAULT_CONFIG.metadata),
377
-
// cSpell:ignore metadatas
378
-
metadatas: Joi.any().forbidden().messages({
379
-
'any.unknown':
380
-
// cSpell:ignore metadatas
381
-
'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
'themeConfig.autoCollapseSidebarCategories has been moved to themeConfig.docs.sidebar.autoCollapseCategories.',
452
-
}),
453
-
sidebarCollapsible: Joi.forbidden().messages({
454
-
'any.unknown':
455
-
'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
exports[`validation schemas > admonitionsSchema > for value={"keywords":["custom-keyword"],"extendDefaults":42} 1`] = `[ValidationError: "extendDefaults" must be a boolean]`;
12
12
13
-
exports[`validation schemas > admonitionsSchema > for value={"tag":""} 1`] = `[ValidationError: It is not possible anymore to use a custom admonition tag. The only admonition tag supported is ':::' (Markdown Directive syntax)]`;
14
-
15
-
exports[`validation schemas > admonitionsSchema > for value={"tag":"+++","keywords":["info","tip"]} 1`] = `[ValidationError: It is not possible anymore to use a custom admonition tag. The only admonition tag supported is ':::' (Markdown Directive syntax)]`;
16
-
17
-
exports[`validation schemas > admonitionsSchema > for value={"tag":"+++"} 1`] = `[ValidationError: It is not possible anymore to use a custom admonition tag. The only admonition tag supported is ':::' (Markdown Directive syntax)]`;
18
-
19
13
exports[`validation schemas > admonitionsSchema > for value={"unknownAttribute":"val"} 1`] = `[ValidationError: "unknownAttribute" is not allowed]`;
20
14
21
15
exports[`validation schemas > admonitionsSchema > for value=3 1`] = `[ValidationError: "value" does not look like a valid admonitions config]`;
0 commit comments