Skip to content

Commit 705c798

Browse files
upgrade docusaurus config
1 parent ca3a5d3 commit 705c798

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docusaurus.config.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,26 @@ const config = {
248248
markdown: {
249249
mermaid: true,
250250
format: 'mdx',
251+
hooks: {
252+
onBrokenMarkdownLinks: 'throw',
253+
onBrokenMarkdownImages: 'throw',
254+
},
251255
mdx1Compat: { //set to false for Docusaurus v3+ compatibility
252256
comments: false,
253257
admonitions: false,
254258
headingIds: false
255-
}
259+
},
260+
parseFrontMatter: async (params) => {
261+
const result = await params.defaultParseFrontMatter(params);
262+
// result.frontMatter.description =
263+
// result.frontMatter.description?.replaceAll('{{MY_VAR}}', 'MY_VALUE');
264+
return result;
265+
},
266+
emoji: true,
267+
remarkRehypeOptions: {},
268+
anchors: {
269+
maintainCase: false,
270+
},
256271
},
257272
};
258273

0 commit comments

Comments
 (0)