-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
56 lines (54 loc) · 1.33 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
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 wrapH2WithSection from "./tools/rehype-wrap-h2-with-section";
import astroLastModifiedAt from "./tools/remark-astro-last-modified-at";
import remarkBudoux from "./tools/remark-budoux";
import rehypeLineNumbers from "./tools/rehype-line-numbers";
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: [remarkBreaks, astroLastModifiedAt, remarkBudoux, codeBlockPlugin],
rehypePlugins: [wrapH2WithSection, rehypeLineNumbers],
shikiConfig: {
defaultColor: false,
themes: {
light: "everforest-light",
dark: "everforest-dark",
},
wrap: false,
},
},
experimental: {
svg: true,
},
});