Files
website/astro.config.mjs
Kenneth cdc17d7b7d
Some checks failed
/ Deploy website to server (push) Failing after 21s
new poast
2026-01-25 00:45:05 +00:00

36 lines
833 B
JavaScript

import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import rehypeMermaid from "rehype-mermaid";
import tailwindcss from "@tailwindcss/vite";
// https://astro.build/config
export default defineConfig({
site: "https://kennethnym.com",
integrations: [mdx(), sitemap()],
markdown: {
syntaxHighlight: {
type: "shiki",
excludeLangs: ["mermaid", "math"],
},
shikiConfig: {
// Choose from Shiki's built-in themes (or add your own)
// https://shiki.style/themes
theme: "catppuccin-mocha",
},
remarkPlugins: [remarkMath],
rehypePlugins: [
rehypeKatex,
[rehypeMermaid, { strategy: "img-png", dark: true }],
],
},
vite: {
plugins: [tailwindcss()],
},
});