-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
25 lines (24 loc) · 914 Bytes
/
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
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import pagefind from "astro-pagefind";
// import preact from '@astrojs/preact';
import { defineConfig } from "astro/config";
import { rehypeAccessibleEmojis } from "rehype-accessible-emojis";
import rehypeKatex from "rehype-katex";
import remarkEmoji from "remark-emoji";
import remarkMath from "remark-math";
import remarkToc from "remark-toc";
// https://astro.build/config
export default defineConfig({
site: "https://pascal.stehl.ing",
integrations: [tailwind(), sitemap(), mdx({
shikiConfig: {
theme: "css-variables",
},
rehypePlugins: [rehypeHeadingIds, rehypeAccessibleEmojis, rehypeKatex],
remarkPlugins: [remarkToc, remarkMath, remarkEmoji],
}), pagefind()],
server: { port: 1234, host: true },
});