forked from QuiltMC/quiltmc.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
27 lines (25 loc) · 864 Bytes
/
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
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import astroI18next from "astro-i18next";
import sitemap from "@astrojs/sitemap";
import purgecss from "astro-purgecss";
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { fromHtml } from 'hast-util-from-html';
import compress from "astro-compress";
// https://astro.build/config
export default defineConfig({
site: "https://quiltmc.org",
integrations: [mdx(), astroI18next(), sitemap(), purgecss(), compress()],
markdown: {
syntaxHighlight: "prism",
rehypePlugins: [[rehypeAutolinkHeadings, {
content: fromHtml('<span class="header-anchor-container icon pl-3"><i class="header-anchor fas fa-lg fa-link has-text-link is-size-5"></i></span>'),
behavior: "append"
}]]
},
vite: {
build: {
assetsInlineLimit: 0
}
}
});