Files
c0ntroller.de/astro.config.mjs
T

41 lines
1023 B
JavaScript

import { defineConfig, fontProviders } from "astro/config";
import icon from "astro-icon";
import mdx from "@astrojs/mdx";
import remarkMath from "remark-math";
import rehypeMathjax from "rehype-mathjax"
import rehypeCallouts from "rehype-callouts";
import mermaid from "astro-mermaid";
export default defineConfig({
fonts: [{
provider: fontProviders.fontsource(),
name: "Cascadia Code",
cssVariable: "--font-cascadia-code",
fallbacks: ["monospace"],
}],
integrations: [
mermaid({
theme: "dark",
autoTheme: false,
mermaidConfig: {
flowchart: {curve:"linear"},
startOnLoad: false,
logLevel: "error",
securityLevel: "strict"
}
}),
icon(),
mdx()
],
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
shikiConfig: {
theme: "one-dark-pro",
},
syntaxHighlight: {
type: "shiki",
excludeLangs: ["mermaid", "math"],
},
}
});