-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathastro.config.mjs
43 lines (40 loc) · 1.09 KB
/
astro.config.mjs
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
35
36
37
38
39
40
41
42
43
// @ts-check
import { defineConfig } from "astro/config";
import rehypeExternalLinks from "rehype-external-links";
import rehypeMathjax from "rehype-mathjax";
import remarkMath from "remark-math";
import { rehypeGithubAlerts } from "rehype-github-alerts";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import partytown from "@astrojs/partytown";
import { SITE } from "./src/config.ts";
import { remarkDescPlugin } from "./src/utils/markdown.ts";
// https://astro.build/config
export default defineConfig({
site: SITE.url,
markdown: {
shikiConfig: {
theme: "dracula",
wrap: true,
langAlias: {
C: "c",
zshrc: "zsh",
},
},
remarkPlugins: [remarkDescPlugin, remarkMath],
rehypePlugins: [
[rehypeExternalLinks, { target: "_blank" }],
rehypeGithubAlerts,
rehypeMathjax,
],
smartypants: false,
},
integrations: [react(), sitemap(), tailwind(), partytown()],
output: "static",
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
},
});