2024-05-14 00:01:06 +01:00
|
|
|
import { defineConfig } from "astro/config";
|
|
|
|
|
import mdx from "@astrojs/mdx";
|
|
|
|
|
import sitemap from "@astrojs/sitemap";
|
2025-01-05 00:41:05 +00:00
|
|
|
import remarkMath from "remark-math";
|
|
|
|
|
import rehypeKatex from "rehype-katex";
|
2026-01-25 00:45:05 +00:00
|
|
|
import rehypeMermaid from "rehype-mermaid";
|
2024-03-09 22:41:35 +00:00
|
|
|
|
2025-08-03 23:02:35 +01:00
|
|
|
import tailwindcss from "@tailwindcss/vite";
|
2024-03-09 22:41:35 +00:00
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
|
export default defineConfig({
|
2024-05-14 00:01:06 +01:00
|
|
|
site: "https://kennethnym.com",
|
2025-08-03 23:02:35 +01:00
|
|
|
integrations: [mdx(), sitemap()],
|
|
|
|
|
|
2024-05-14 00:01:06 +01:00
|
|
|
markdown: {
|
2026-01-25 00:45:05 +00:00
|
|
|
syntaxHighlight: {
|
|
|
|
|
type: "shiki",
|
|
|
|
|
excludeLangs: ["mermaid", "math"],
|
|
|
|
|
},
|
2024-05-14 00:01:06 +01:00
|
|
|
shikiConfig: {
|
|
|
|
|
// Choose from Shiki's built-in themes (or add your own)
|
|
|
|
|
// https://shiki.style/themes
|
|
|
|
|
theme: "catppuccin-mocha",
|
|
|
|
|
},
|
2025-01-05 00:41:05 +00:00
|
|
|
remarkPlugins: [remarkMath],
|
2026-01-25 00:45:05 +00:00
|
|
|
rehypePlugins: [
|
|
|
|
|
rehypeKatex,
|
|
|
|
|
[rehypeMermaid, { strategy: "img-png", dark: true }],
|
|
|
|
|
],
|
2024-05-14 00:01:06 +01:00
|
|
|
},
|
2025-08-03 23:02:35 +01:00
|
|
|
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [tailwindcss()],
|
|
|
|
|
},
|
2024-05-14 00:01:06 +01:00
|
|
|
});
|