-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathastro.config.mjs
More file actions
34 lines (32 loc) · 864 Bytes
/
astro.config.mjs
File metadata and controls
34 lines (32 loc) · 864 Bytes
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
import { readFileSync } from "fs";
import { defineConfig } from "astro/config";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import addSlugToHeadingIds from "./src/plugins/add-slug-to-heading-ids.mjs";
// https://astro.build/config
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
site: "https://lifull.github.io",
base: "/accessibility-guidelines",
build: {
format: "file",
assets: "assets",
},
markdown: {
shikiConfig: {
theme: JSON.parse(
readFileSync("src/assets/syntax.json", { encoding: "utf-8" })
),
},
rehypePlugins: [
rehypeHeadingIds,
addSlugToHeadingIds,
rehypeAutolinkHeadings,
],
},
integrations: [mdx()],
experimental: {
assets: true,
},
});