Skip to content

Commit 6305d52

Browse files
authored
Merge pull request #7331 from opsmill/pmc-20251007-docusaurus
update docusaurus
2 parents e07343c + 788b794 commit 6305d52

File tree

2 files changed

+4033
-1100
lines changed

2 files changed

+4033
-1100
lines changed

docs/docusaurus.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const config: Config = {
3131

3232
onBrokenLinks: "throw",
3333
onBrokenAnchors: "throw",
34-
onBrokenMarkdownLinks: "throw",
3534
onDuplicateRoutes: "throw",
3635

3736
// Even if you don't use internationalization, you can use this field to set
@@ -124,6 +123,9 @@ const config: Config = {
124123
markdown: {
125124
format: "mdx",
126125
mermaid: true,
126+
hooks: {
127+
onBrokenMarkdownLinks: "throw",
128+
},
127129
preprocessor: ({ filePath, fileContent }) => {
128130
console.log(`Processing ${filePath}`);
129131
const transformedContent = fileContent.replace(/\$\(\s*(\w+)\s*\)/g, (match, variableName) => {

0 commit comments

Comments
 (0)