forked from smartcontractkit/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
39 lines (38 loc) · 1.04 KB
/
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
import { defineConfig } from "astro/config"
import preact from "@astrojs/preact"
import react from "@astrojs/react"
import mdx from "@astrojs/mdx"
import rehypeSlug from "rehype-slug"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeWrapAll from "rehype-wrap-all"
import sitemap from "@astrojs/sitemap"
import { RehypePlugins } from "@astrojs/markdown-remark"
// https://astro.build/config
export default defineConfig({
site: "https://docs.chain.link",
integrations: [
preact({
include: ["**/preact/*"],
}),
react({
include: ["**/react/*"],
}),
sitemap({ changefreq: "daily" }),
mdx(),
],
markdown: {
rehypePlugins: [
rehypeSlug, // Required for autolink to work properly
[
rehypeAutolinkHeadings,
{
behavior: "wrap",
},
],
// Wrap tables in div with overflow supported
[rehypeWrapAll, { selector: "table", wrapper: "div.overflow-wrapper" }],
] as RehypePlugins,
syntaxHighlight: "prism",
smartypants: false,
},
})