-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathastro.config.ts
More file actions
34 lines (30 loc) · 1.05 KB
/
astro.config.ts
File metadata and controls
34 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeRaw from "rehype-raw";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import { fixMdx } from "./plugins/fix-mdx";
import { rehypeShikiCommands } from "./plugins/rehype-shiki-commands";
import { rehypeMathjaxEquation } from "./plugins/rehype-mathjax-equation";
import { remarkGfmAdmonitions } from "./plugins/remark-gfm-admonitions";
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
site: "https://nmattia.com",
integrations: [sitemap(), mdx()],
markdown: {
shikiConfig: {
theme:
"dark-plus" /* NOTE: ensure this matches values used in <Code/> components */,
},
remarkPlugins: [remarkMath, remarkGfmAdmonitions],
rehypePlugins: [
fixMdx,
rehypeKatex as any /* something is off in the types but everything works fine */,
rehypeRaw,
rehypeShikiCommands,
rehypeMathjaxEquation,
],
},
prefetch: true /* enable prefetching */,
});