2023-08-31 03:47:22 +00:00
|
|
|
import { defineConfig } from "astro/config";
|
|
|
|
import mdx from "@astrojs/mdx";
|
|
|
|
import sitemap from "@astrojs/sitemap";
|
2023-10-04 14:16:04 +00:00
|
|
|
import { rehypeAccessibleEmojis } from "rehype-accessible-emojis";
|
2023-08-31 15:33:14 +00:00
|
|
|
|
2023-09-01 15:09:01 +00:00
|
|
|
import remarkReadingTime from "./plugin/remark-reading-time";
|
2023-09-01 04:15:54 +00:00
|
|
|
import emoji from "remark-emoji";
|
2023-09-01 00:10:20 +00:00
|
|
|
import remarkMermaid from "astro-diagram/remark-mermaid";
|
2023-09-01 12:59:21 +00:00
|
|
|
import remarkDescription from "astro-remark-description";
|
2023-09-01 15:09:01 +00:00
|
|
|
import remarkAdmonitions from "./plugin/remark-admonitions";
|
2023-09-01 17:05:29 +00:00
|
|
|
import remarkMath from "remark-math";
|
|
|
|
import rehypeKatex from "rehype-katex";
|
2023-08-31 03:47:22 +00:00
|
|
|
|
2023-10-11 16:48:34 +00:00
|
|
|
import addProofMacros from "./utils/mzproofs";
|
|
|
|
import remarkAgda from "./plugin/remark-agda";
|
|
|
|
|
2023-08-31 03:47:22 +00:00
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
2023-08-31 08:17:02 +00:00
|
|
|
site: "https://mzhang.io",
|
2023-10-11 16:48:34 +00:00
|
|
|
integrations: [
|
|
|
|
mdx(),
|
|
|
|
sitemap(),
|
|
|
|
//astroImageTools
|
|
|
|
],
|
2023-08-31 08:07:03 +00:00
|
|
|
markdown: {
|
2023-10-02 22:36:09 +00:00
|
|
|
syntaxHighlight: "shiki",
|
|
|
|
shikiConfig: { theme: "css-variables" },
|
2023-09-01 12:59:21 +00:00
|
|
|
remarkPlugins: [
|
2023-09-01 15:09:01 +00:00
|
|
|
remarkAdmonitions,
|
2023-09-01 12:59:21 +00:00
|
|
|
remarkReadingTime,
|
2023-10-11 16:48:34 +00:00
|
|
|
remarkAgda,
|
|
|
|
[remarkMath, {}],
|
2023-09-01 12:59:21 +00:00
|
|
|
remarkMermaid,
|
|
|
|
emoji,
|
|
|
|
[remarkDescription, { name: "excerpt" }],
|
|
|
|
],
|
2023-10-11 16:48:34 +00:00
|
|
|
rehypePlugins: [[rehypeKatex, { macros: addProofMacros({}) }], rehypeAccessibleEmojis],
|
2023-08-31 08:07:03 +00:00
|
|
|
},
|
2023-08-31 03:47:22 +00:00
|
|
|
});
|