-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
53 lines (52 loc) · 1.18 KB
/
astro.config.ts
File metadata and controls
53 lines (52 loc) · 1.18 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
41
42
43
44
45
46
47
48
49
50
51
52
53
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 devtoolsJson from 'vite-plugin-devtools-json'
import { themeConfig } from './src/.config'
// https://astro.build/config
export default defineConfig({
site: themeConfig.site.website,
prefetch: true,
base: '/',
vite: {
plugins: [
// eslint-disable-next-line ts/ban-ts-comment
// @ts-ignore
devtoolsJson(),
],
},
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,
containers: ['main', 'header'],
}),
],
})