-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.mjs
More file actions
44 lines (43 loc) · 1.08 KB
/
astro.config.mjs
File metadata and controls
44 lines (43 loc) · 1.08 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
import remarkAsides from "#scripts/asides.js";
import mdx from "@astrojs/mdx";
import expressiveCode from "astro-expressive-code";
import { defineConfig, fontProviders } from "astro/config";
import remarkDirective from "remark-directive";
// https://astro.build/config
export default defineConfig({
site: "https://yanthomas.dev",
integrations: [
expressiveCode({
themes: ["catppuccin-macchiato"],
styleOverrides: {
borderRadius: "0",
uiFontFamily: "var(--font-space-mono)",
uiFontSize: "var(--font-size--2)",
codeFontFamily: "var(--font-space-mono)",
codeFontSize: "var(--font-size--2)",
},
}),
mdx(),
],
markdown: {
remarkPlugins: [remarkDirective, remarkAsides],
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport",
},
experimental: {
contentIntellisense: true,
svgo: true,
clientPrerender: true,
fonts: [{
provider: fontProviders.google(),
name: "Space Mono",
cssVariable: "--font-space-mono",
weights: ["400", "700"],
styles: ["normal", "italic"],
subsets: ["latin"],
fallbacks: ["monospace"],
}],
},
});