Problem
docusaurus.config.js uses the deprecated onBrokenMarkdownLinks option at the top-level siteConfig object. This will be removed in Docusaurus v4.
Build warning:
[WARNING] The `siteConfig.onBrokenMarkdownLinks` config option is deprecated and will be removed in Docusaurus v4.
Please migrate and move this option to `siteConfig.markdown.hooks.onBrokenMarkdownLinks` instead.
Fix
In website/docusaurus.config.js, move the option from the top-level config to the markdown.hooks object:
// Before (deprecated)
onBrokenMarkdownLinks: 'warn',
// After
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
},
File
website/docusaurus.config.js
Problem
docusaurus.config.jsuses the deprecatedonBrokenMarkdownLinksoption at the top-levelsiteConfigobject. This will be removed in Docusaurus v4.Build warning:
Fix
In
website/docusaurus.config.js, move the option from the top-level config to themarkdown.hooksobject:File
website/docusaurus.config.js