-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
129 lines (128 loc) · 3.59 KB
/
Copy pathastro.config.ts
File metadata and controls
129 lines (128 loc) · 3.59 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import { defineConfig, fontProviders, svgoOptimizer } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import {
transformerNotationDiff,
transformerNotationHighlight,
transformerNotationWordHighlight,
} from "@shikijs/transformers";
import { transformerFileName } from "./src/utils/transformers/fileName";
import config from "./src/config";
// https://astro.build/config
export default defineConfig({
site: config.site.url,
integrations: [
sitemap({
filter: page => config.posts?.showArchives || !page.endsWith("/archives"),
}),
],
markdown: {
shikiConfig: {
// For more themes, visit https://shiki.style/themes
theme: "night-owl",
defaultColor: false,
wrap: true,
transformers: [
transformerFileName({ style: "v2", hideDot: false }),
transformerNotationHighlight(),
transformerNotationWordHighlight(),
transformerNotationDiff({ matchAlgorithm: "v3" }),
],
},
},
vite: {
plugins: [tailwindcss()],
},
image: {
responsiveStyles: true,
layout: "constrained",
},
fonts: [
{
provider: fontProviders.local(),
name: "IBM Plex Mono",
cssVariable: "--font-ibm-plex-mono",
fallbacks: ["monospace"],
formats: ["woff", "woff2"],
options: {
variants: [
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Light.woff2",
],
weight: "300",
style: "normal",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2",
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Regular.woff",
],
weight: "400",
style: "normal",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Medium.woff2",
],
weight: "500",
style: "normal",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBold.woff2",
],
weight: "600",
style: "normal",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Bold.woff2",
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff/IBMPlexMono-Bold.woff",
],
weight: "700",
style: "normal",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-LightItalic.woff2",
],
weight: "300",
style: "italic",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Italic.woff2",
],
weight: "400",
style: "italic",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-MediumItalic.woff2",
],
weight: "500",
style: "italic",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-SemiBoldItalic.woff2",
],
weight: "600",
style: "italic",
},
{
src: [
"@ibm/plex/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-BoldItalic.woff2",
],
weight: "700",
style: "italic",
},
],
},
},
],
experimental: {
svgOptimizer: svgoOptimizer(),
},
});