Skip to content

Commit 93b51c2

Browse files
committed
Move deprecated setting
Signed-off-by: Dan Barr <[email protected]>
1 parent 2d21b9f commit 93b51c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const config: Config = {
4141
projectName: 'docs-website', // Usually your repo name.
4242

4343
onBrokenLinks: 'throw',
44-
onBrokenMarkdownLinks: 'warn',
44+
onBrokenAnchors: 'warn',
4545

4646
// Even if you don't use internationalization, you can use this field to set
4747
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -58,6 +58,10 @@ const config: Config = {
5858
admonitions: false,
5959
headingIds: true,
6060
},
61+
hooks: {
62+
onBrokenMarkdownLinks: 'warn',
63+
onBrokenMarkdownImages: 'throw',
64+
},
6165
},
6266

6367
themes: ['@docusaurus/theme-mermaid', 'docusaurus-json-schema-plugin'],

0 commit comments

Comments
 (0)