Skip to content

Commit 4080dd0

Browse files
committed
Fix for deprecated field
1 parent d4ff099 commit 4080dd0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docusaurus.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ const config: Config = {
2020
projectName: "postcodes.io", // Usually your repo name.
2121

2222
onBrokenLinks: "throw",
23-
onBrokenMarkdownLinks: "warn",
23+
24+
markdown: {
25+
hooks: {
26+
onBrokenMarkdownLinks: "warn",
27+
},
28+
},
2429

2530
// Even if you don't use internationalization, you can use this field to set
2631
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -35,7 +40,7 @@ const config: Config = {
3540
"classic",
3641
{
3742
docs: {
38-
sidebarPath: require.resolve("./sidebars"),
43+
sidebarPath: "./sidebars.ts",
3944
docItemComponent: "@theme/ApiItem", // Fix for docusaurus-openapi-docs
4045
},
4146
theme: {

0 commit comments

Comments
 (0)