-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.ts
42 lines (38 loc) · 1.23 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
40
41
42
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import { rendererRich, transformerTwoslash } from "@shikijs/twoslash";
import { defineConfig } from "astro/config";
import { renderMarkdownInTwoslashHover } from "./src/lib/rendering/renderMarkdown.tsx";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: "https://skyware.js.org",
redirects: {
"/docs/bot": "/guides/bot/introduction/getting-started",
"/docs/firehose": "/guides/firehose/introduction/getting-started",
"/docs/labeler": "/guides/labeler/introduction/getting-started",
"/docs/jetstream": "/guides/jetstream/introduction/getting-started",
},
integrations: [tailwind({ applyBaseStyles: false }), react(), mdx(), sitemap({})],
markdown: {
shikiConfig: {
theme: "catppuccin-mocha",
transformers: [
transformerTwoslash({
renderer: rendererRich({
renderMarkdown: renderMarkdownInTwoslashHover!,
renderMarkdownInline: renderMarkdownInTwoslashHover!,
}),
twoslashOptions: {
compilerOptions: {
module: 199, // nodenext
moduleResolution: 99 // nodenext
}
}
}),
],
wrap: true,
},
},
});