Skip to content

Commit 6b9e81d

Browse files
committed
darktheme mermaid
1 parent 93f5ca7 commit 6b9e81d

File tree

3 files changed

+94
-143
lines changed

3 files changed

+94
-143
lines changed

astro.config.mjs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import { defineConfig, sharpImageService } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import starlightBlog from 'starlight-blog'
55
import starlightSidebarTopics from 'starlight-sidebar-topics';
6-
import tailwindcss from "@tailwindcss/vite";
76
import remarkSimplePlantumlPlugin from "@akebifiky/remark-simple-plantuml"
8-
import rehypeMermaid from 'rehype-mermaid';
97
import remarkGemoji from 'remark-gemoji';
8+
import mermaid from 'astro-mermaid';
109

1110

1211
// https://astro.build/config
@@ -16,9 +15,6 @@ export default defineConfig({
1615
remarkPlugins: [
1716
[remarkSimplePlantumlPlugin, { baseUrl: "https://www.plantuml.com/plantuml/svg" }],
1817
remarkGemoji
19-
],
20-
rehypePlugins: [
21-
rehypeMermaid
2218
]
2319
},
2420
image: {
@@ -27,6 +23,10 @@ export default defineConfig({
2723
site: 'https://modularmoose.org',
2824
base: '',
2925
integrations: [
26+
mermaid({
27+
theme: 'forest',
28+
autoTheme: true
29+
}),
3030
starlight({
3131
title: 'Modular Moose',
3232
customCss: [
@@ -314,9 +314,5 @@ export default defineConfig({
314314
},
315315
)]
316316
}),
317-
],
318-
319-
vite: {
320-
plugins: [tailwindcss()],
321-
},
317+
]
322318
});

package-lock.json

Lines changed: 86 additions & 132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)