Skip to content

Commit 7130286

Browse files
Merge pull request #387 from nriley/docusarus-deprecation
Update Docusaurus configuration to address deprecation.
2 parents 019226b + 497e667 commit 7130286

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docusaurus.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const config: Config = {
2424
projectName: "Talon Community Wiki", // Usually your repo name.
2525

2626
onBrokenLinks: "throw",
27-
onBrokenMarkdownLinks: "throw",
2827

2928
// Even if you don't use internationalization, you can use this field to set
3029
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -72,6 +71,9 @@ const config: Config = {
7271
plugins: ["./plugins/repo-data-plugin.js"],
7372
markdown: {
7473
mermaid: true,
74+
hooks: {
75+
onBrokenMarkdownLinks: "throw",
76+
},
7577
},
7678
themes: [
7779
[

docusaurus.ghpages.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const config = {
2020
deploymentBranch: "gh-pages", // Specify gh-pages branch as deploy target.
2121

2222
onBrokenLinks: "throw",
23-
onBrokenMarkdownLinks: "throw",
2423

2524
// Even if you don't use internationalization, you can use this field to set
2625
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -67,6 +66,9 @@ const config = {
6766
],
6867
markdown: {
6968
mermaid: true,
69+
hooks: {
70+
onBrokenMarkdownLinks: "throw",
71+
},
7072
},
7173
themes: [
7274
[

0 commit comments

Comments
 (0)