Skip to content

Commit 691b87d

Browse files
committed
add: remarkGithubAdmonitions
1 parent b8b218c commit 691b87d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

website/docusaurus.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { themes as prismThemes } from "prism-react-renderer";
2+
import remarkGithubAdmonitions from "remark-github-admonitions-to-directives";
23

34
/** @type {import('@docusaurus/types').Config} */
45
const config = {
@@ -26,11 +27,13 @@ const config = {
2627
{
2728
docs: {
2829
routeBasePath: "docs",
29-
sidebarPath: "./sidebars.js"
30+
sidebarPath: "./sidebars.js",
31+
remarkPlugins: [remarkGithubAdmonitions],
3032
},
3133
blog: {
3234
routeBasePath: "blog",
33-
showReadingTime: false
35+
showReadingTime: false,
36+
remarkPlugins: [remarkGithubAdmonitions],
3437
},
3538
theme: {
3639
customCss: "./src/css/custom.css"

website/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@
1313
"@mdx-js/react": "^3.0.1",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
16+
},
17+
"devDependencies": {
18+
"remark-github-admonitions-to-directives": "^2.1.0"
1619
}
1720
}

0 commit comments

Comments
 (0)