-
Notifications
You must be signed in to change notification settings - Fork 120
/
astro.config.ts
44 lines (43 loc) · 982 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
35
36
37
38
39
40
41
42
43
44
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import swup from '@swup/astro'
import robotsTxt from 'astro-robots-txt'
import { defineConfig } from 'astro/config'
import rehypeKatex from 'rehype-katex'
import remarkMath from 'remark-math'
import UnoCSS from 'unocss/astro'
import { themeConfig } from './src/.config'
// https://astro.build/config
export default defineConfig({
site: themeConfig.site.website,
prefetch: true,
base: '/',
markdown: {
remarkPlugins: [
remarkMath,
],
rehypePlugins: [
rehypeKatex,
],
shikiConfig: {
theme: 'dracula',
wrap: true,
},
},
integrations: [
UnoCSS({ injectReset: true }),
mdx({}),
robotsTxt(),
sitemap(),
swup({
theme: false,
animationClass: 'transition-swup-',
cache: true,
preload: true,
accessibility: true,
smoothScrolling: true,
updateHead: true,
updateBodyClass: true,
}),
],
})