File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ import markdownItKatex from "markdown-it-katex";
77import { createAutoGeneratePostsPlugin } from "./plugins/posts" ;
88import { createImageOptimizerPlugin } from "./plugins/image-optimizer" ;
99import { markdownPicturePlugin } from "./plugins/markdown-picture" ;
10+ import { withMermaid } from "vitepress-plugin-mermaid" ;
1011
1112const isProduction = process . env . NODE_ENV === "production" ;
1213
1314const GOOGLE_ANALYTICS_ID = "G-3XM039P5E6" ;
1415const NAVER_SITE_VERIFICATION_CODE = "db7f3601aa486190aa58c3e09dcd7f35a784543e" ;
1516
1617// https://vitepress.dev/reference/site-config
17- export default defineConfig ( {
18+ export default withMermaid ( defineConfig ( {
1819 lang : "ko-KR" ,
1920 title : "🦷 ToothlessDev" ,
2021 description : "A VitePress Site" ,
@@ -101,4 +102,4 @@ export default defineConfig({
101102 } ,
102103 ] ,
103104 ] ,
104- } ) ;
105+ } ) ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import DefaultTheme from "vitepress/theme";
55import Giscus from "@giscus/vue" ;
66import PostCardList from "@/components/PostCardList/PostCardList.vue" ;
77import PostLayout from "@/components/PostLayout/PostLayout.vue" ;
8+ import { MermaidPlugin } from "vitepress-plugin-mermaid" ;
89import "./style.css" ;
910
1011export default {
@@ -13,5 +14,6 @@ export default {
1314 enhanceApp ( { app, router, siteData } ) {
1415 app . component ( "PostCardList" , PostCardList ) ;
1516 app . component ( "Giscus" , Giscus ) ;
17+ app . use ( MermaidPlugin ) ;
1618 } ,
1719} satisfies Theme ;
Original file line number Diff line number Diff line change 1717 "dependencies" : {
1818 "@giscus/vue" : " ^3.1.1" ,
1919 "katex" : " ^0.16.25" ,
20- "markdown-it-katex" : " ^2.0.3"
20+ "markdown-it-katex" : " ^2.0.3" ,
21+ "mermaid" : " ^11.14.0" ,
22+ "vitepress-plugin-mermaid" : " ^2.0.17"
2123 },
2224 "version" : " 0.0.0" ,
2325 "packageManager" : " yarn@1.22.22"
You can’t perform that action at this time.
0 commit comments