-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
34 lines (32 loc) · 917 Bytes
/
astro.config.ts
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 UnoCSS from 'unocss/astro';
import { THEME_CONFIG } from "./src/theme.config";
import robotsTxt from "astro-robots-txt";
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
import rehypeKatex from 'rehype-katex'; // relevant
import remarkMath from 'remark-math'; // relevant
import partytown from "@astrojs/partytown";
// https://astro.build/config
export default defineConfig({
site: THEME_CONFIG.website,
prefetch: true,
markdown: {
shikiConfig: {
theme: 'github-light',
langs: [],
wrap: true
}
},
integrations: [UnoCSS({
injectReset: true
}), robotsTxt(), sitemap(), mdx({
remarkPlugins: [remarkMath], // relevant
rehypePlugins: [rehypeKatex] // relevant
}), partytown({
// Adds dataLayer.push as a forwarding-event.
config: {
forward: ["dataLayer.push"],
},
})]
});