-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.ts
40 lines (37 loc) · 1.05 KB
/
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
import { defineConfig } from 'astro/config'
import sitemap from '@astrojs/sitemap'
import AstroPWA from '@vite-pwa/astro'
import { Gumori } from './src/scripts/vite'
import remarkGfm from 'remark-gfm'
import rehypePrettyCode from 'rehype-pretty-code'
import rehypeSlug from 'rehype-slug'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
// https://astro.build/config
export default defineConfig({
site: 'https://gumori.netlify.app',
integrations: [sitemap(), AstroPWA()],
markdown: {
syntaxHighlight: false,
remarkPlugins: [remarkGfm],
rehypePlugins: [
[rehypePrettyCode, { theme: { light: 'github-light', dark: 'github-dark' } }],
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: 'append',
content: {
type: 'element',
tagName: 'span',
properties: { className: ['anchor-link'] },
children: [{ type: 'text', value: '#' }]
}
}
]
]
},
vite: {
optimizeDeps: { exclude: ['url'] },
plugins: [Gumori()]
}
})