-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
executable file
·51 lines (50 loc) · 1.2 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
import mdx from "@astrojs/mdx";
import node from "@astrojs/node";
import tailwind from "@astrojs/tailwind";
import {
transformerNotationDiff,
transformerNotationErrorLevel,
transformerNotationFocus,
transformerNotationHighlight,
transformerNotationWordHighlight
} from "@shikijs/transformers";
import { defineConfig } from "astro/config";
import remarkToc from "remark-toc";
import theme from "./src/theme.json";
// https://astro.build/config
export default defineConfig({
output: "hybrid",
adapter: node({
mode: "standalone"
}),
integrations: [tailwind(), mdx()],
markdown: {
shikiConfig: {
theme,
transformers: [
transformerNotationDiff(),
transformerNotationHighlight(),
transformerNotationWordHighlight(),
transformerNotationFocus(),
transformerNotationErrorLevel(),
{
preprocess(text, config) {
config.transformers.push({
pre(node) {
node.properties.lang = config.lang;
this.addClassToHast(node, `language-${config.lang}`);
}
});
}
}
]
},
remarkPlugins: [[remarkToc, { tight: true, maxDepth: 3 }]]
},
image: {
domains: ["slxazldgfeytirfrculz.supabase.co"]
},
experimental: {
contentCollectionCache: true
}
});