Skip to content

Commit 0177554

Browse files
committed
fix: update Docusaurus configuration and dependencies for compatibility
1 parent 96aa301 commit 0177554

3 files changed

Lines changed: 11220 additions & 7112 deletions

File tree

docusaurus.config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
1+
const { themes } = require('prism-react-renderer');
2+
const lightCodeTheme = themes.github;
3+
const darkCodeTheme = themes.dracula;
24

35
/** @type {import('@docusaurus/types').Config} */
46
const config = {
@@ -25,6 +27,19 @@ const config = {
2527
},
2628
},
2729

30+
markdown: {
31+
format: 'detect',
32+
mermaid: true,
33+
preprocessor: ({filePath, fileContent}) => {
34+
return fileContent;
35+
},
36+
mdx1Compat: {
37+
admonitions: true,
38+
comments: true,
39+
headingIds: true,
40+
},
41+
},
42+
2843
presets: [
2944
[
3045
'classic',
@@ -131,6 +146,7 @@ const config = {
131146
copyright: `Copyright © ${new Date().getFullYear()} ProBot, Inc. Built with Docusaurus.`,
132147
},
133148
prism: {
149+
theme: lightCodeTheme,
134150
darkTheme: darkCodeTheme,
135151
},
136152
}),

0 commit comments

Comments
 (0)