-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
55 lines (53 loc) · 1.23 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
import { defineConfig } from "astro/config";
import remarkBreaks from "remark-breaks";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import codeBlockPlugin from "./tools/remark-code-quote";
import rehypeHeadingSpan from "./tools/rehype-heading-span";
import rehypeLineNumbers from "./tools/rehype-line-numbers";
import remarkAside from "./tools/remark-aside";
import compressor from "astro-compressor";
// https://astro.build/config
export default defineConfig({
site: "https://wagomu.me",
build: {
format: "file",
},
integrations: [
mdx(),
sitemap(),
(await import("@playform/compress")).default({
CSS: false,
HTML: false,
Image: false,
JavaScript: true,
SVG: true,
Logger: 1,
}),
(await import("@playform/inline")).default(),
compressor(),
],
trailingSlash: "never",
vite: {
plugins: [],
},
markdown: {
remarkRehype: {
footnoteLabelTagName: "hr",
footnoteLabel: " ",
},
remarkPlugins: [remarkAside, codeBlockPlugin, remarkBreaks],
rehypePlugins: [rehypeLineNumbers, rehypeHeadingSpan],
shikiConfig: {
defaultColor: false,
themes: {
light: "everforest-light",
dark: "everforest-dark",
},
wrap: false,
},
},
experimental: {
svg: true,
},
});