-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
41 lines (34 loc) · 954 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { defineConfig } from "astro/config";
import { SITE_URL } from "./src/constants";
import rehypeSlug from "rehype-slug";
import astroRehypeRelativeMarkdownLinks from "astro-rehype-relative-markdown-links";
import remarkMermaid from "remark-mermaidjs";
const rehypePlugins = [rehypeSlug, astroRehypeRelativeMarkdownLinks];
const remarkPlugins = [remarkMermaid];
// https://astro.build/config
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
import react from "@astrojs/react";
// https://astro.build/config
import mdx from "@astrojs/mdx";
import icon from "astro-icon";
// https://astro.build/config
export default defineConfig({
site: SITE_URL,
markdown: {
rehypePlugins,
remarkPlugins,
},
integrations: [
icon(),
sitemap(),
robotsTxt(),
react(),
mdx({
rehypePlugins,
remarkPlugins,
}),
],
});