-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
30 lines (29 loc) · 905 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
26
27
28
29
30
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import prefetch from "@astrojs/prefetch";
import rehypeSlug from "rehype-slug";
import remarkGfm from "remark-gfm";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeExternalLinks from "rehype-external-links";
import { remarkReadingTime } from "./src/utils/mdxUtils.mjs";
// https://astro.build/config
export default defineConfig({
integrations: [
tailwind(),
mdx({
remarkPlugins: [
remarkGfm,
rehypeSlug,
remarkReadingTime,
rehypeAutolinkHeadings,
rehypeExternalLinks,
],
syntaxHighlight: "shiki",
shikiConfig: {
theme: "one-dark-pro",
},
}),
prefetch(),
],
});