-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
39 lines (36 loc) · 1.08 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
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import { remarkHyphenate } from "./remark-plugins/remark-hyphenate.mjs";
import remarkUnwrapImages from "remark-unwrap-images";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
import expressiveCode from "astro-expressive-code";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import tailwind from "@astrojs/tailwind";
import preact from "@astrojs/preact";
import glslify from "vite-plugin-glslify";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
export default defineConfig({
site: "https://jfagerberg.me",
vite: {
plugins: [glslify()],
},
markdown: {
remarkPlugins: [remarkHyphenate, remarkUnwrapImages, remarkMath],
rehypePlugins: [rehypeKatex],
},
integrations: [
tailwind({
applyBaseStyles: false,
}),
preact(),
expressiveCode({
plugins: [pluginCollapsibleSections()]
}),
mdx(),
sitemap(),
robotsTxt(),
],
});