fix: migrate onBrokenMarkdownLinks to markdown.hooks

The top-level onBrokenMarkdownLinks config option is deprecated
in favor of markdown.hooks.onBrokenMarkdownLinks and will be
removed in Docusaurus v4.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2026-07-17 11:24:07 +02:00
parent 370d570237
commit e9cacecd10

View File

@ -21,7 +21,12 @@ const config: Config = {
deploymentBranch: 'gh-pages', deploymentBranch: 'gh-pages',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'throw',
},
},
// Even if you don't use internationalization, you can use this field to set // Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you // useful metadata like html lang. For example, if your site is Chinese, you