-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
43 lines (42 loc) · 1.07 KB
/
astro.config.ts
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
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
// eslint-disable-next-line import/no-extraneous-dependencies
import { visit } from "unist-util-visit";
// https://astro.build/config
export default defineConfig({
site: "https://iAdw.in",
server: {
host: true,
},
integrations: [tailwind(), sitemap()],
markdown: {
remarkPlugins: [
"remark-gfm",
"remark-captions",
// temp fix for code blocks not rendering
// https://github.com/zestedesavoir/zmarkdown/issues/490
() => (tree) => {
visit(tree, "figure", (figure) => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line no-param-reassign
delete figure.value;
});
},
],
rehypePlugins: ["rehype-slug"],
syntaxHighlight: "shiki",
shikiConfig: {
theme: "nord",
wrap: false,
},
},
vite: {
server: {
watch: {
ignored: ["**/.direnv/**"],
},
},
},
});