-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
executable file
·40 lines (39 loc) · 1.17 KB
/
astro.config.mjs
File metadata and controls
executable file
·40 lines (39 loc) · 1.17 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
35
36
37
38
39
40
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import AutoImport from "astro-auto-import";
import { defineConfig } from "astro/config";
import remarkCollapse from "remark-collapse";
import remarkToc from "remark-toc";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";
// https://astro.build/config
export default defineConfig({
site: "https://www.phiwan.dev",
base: "/",
trailingSlash: "ignore",
prefetch: {
prefetchAll: true
},
integrations: [react(), sitemap(), tailwind({
config: {
applyBaseStyles: false
}
}), AutoImport({
imports: ["@components/common/Button.astro", "@shortcodes/Accordion", "@shortcodes/Notice", "@shortcodes/Youtube", "@shortcodes/Tabs", "@shortcodes/Tab"]
}), mdx()],
markdown: {
remarkPlugins: [remarkToc, [remarkCollapse, {
test: "Table of contents"
}], remarkMath],
rehypePlugins: [[rehypeKatex, {}]],
shikiConfig: {
themes: { // https://shiki.style/themes
light: "light-plus",
dark: "dark-plus",
}
},
extendDefaultPlugins: true
},
});