-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
60 lines (58 loc) · 1.6 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwind from "@astrojs/tailwind";
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
import TokyoNight from './src/TokyoNight.json';
import TokyoNightLight from './src/TokyoNightLight.json';
import preact from "@astrojs/preact";
// https://astro.build/config
export default defineConfig({
site: 'https://tgc54.com',
// prefetch: {
// prefetchAll: true,
// defaultStrategy: 'viewport'
// },
image: {
domains: ["astro.build", "user-images.githubusercontent.com", "cdn.sparkfun.com"]
},
markdown: {
syntaxHighlight: false,
remarkPlugins: [remarkMath, remarkGfm],
rehypePlugins: [[rehypeKatex, {
strict: true,
throwOnError: true
}], [rehypePrettyCode, {
theme: {
dark: TokyoNight,
light: TokyoNightLight
}
}], rehypeSlug, [rehypeAutolinkHeadings, {
behavior: 'append',
content: {
type: 'text',
value: ' #'
},
headingProperties: {
className: "group"
},
properties: {
ariaHidden: true,
tabIndex: -1,
className: "opacity-0 no-underline text-muted-foreground group-hover:opacity-100 transition-opacity"
}
}]]
},
integrations: [
mdx(), sitemap(),
tailwind({
applyBaseStyles: false
}),
preact(),
]
});