-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
86 lines (80 loc) · 2.13 KB
/
astro.config.ts
File metadata and controls
86 lines (80 loc) · 2.13 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { defineConfig, envField, fontProviders } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import {
transformerNotationDiff,
transformerNotationHighlight,
transformerNotationWordHighlight,
} from "@shikijs/transformers";
import { transformerFileName } from "./src/utils/transformers/fileName";
import { remarkObsidianImage } from "./src/utils/remark-obsidian-image";
import { SITE } from "./src/config";
// https://astro.build/config
export default defineConfig({
site: SITE.website,
integrations: [],
markdown: {
remarkPlugins: [
remarkObsidianImage,
remarkToc,
[remarkCollapse, { test: "Table of contents" }],
],
shikiConfig: {
themes: { light: "min-light", dark: "night-owl" },
defaultColor: false,
wrap: false,
transformers: [
transformerFileName({ style: "v2", hideDot: false }),
transformerNotationHighlight(),
transformerNotationWordHighlight(),
transformerNotationDiff({ matchAlgorithm: "v3" }),
],
},
},
vite: {
plugins: [tailwindcss()],
},
image: {
responsiveStyles: true,
layout: "constrained",
},
env: {
schema: {
PUBLIC_GOOGLE_SITE_VERIFICATION: envField.string({
access: "public",
context: "client",
optional: true,
}),
},
},
fonts: [
{
name: "Instrument Serif",
cssVariable: "--font-instrument-serif",
provider: fontProviders.google(),
fallbacks: ["serif"],
weights: [400],
styles: ["normal", "italic"],
display: "swap",
},
{
name: "Space Grotesk",
cssVariable: "--font-space-grotesk",
provider: fontProviders.google(),
fallbacks: ["sans-serif"],
weights: [300, 400, 500, 600, 700],
styles: ["normal"],
display: "swap",
},
{
name: "IBM Plex Mono",
cssVariable: "--font-ibm-plex-mono",
provider: fontProviders.google(),
fallbacks: ["monospace"],
weights: [400, 500],
styles: ["normal", "italic"],
display: "swap",
},
],
});