-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
40 lines (37 loc) · 1.09 KB
/
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
31
32
33
34
35
36
37
38
39
40
// import { getHighlighter, BUNDLED_LANGUAGES } from "shiki";
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
import rehypePrettyCode from "rehype-pretty-code";
import mdx from "@astrojs/mdx";
/** @type {import('rehype-pretty-code').Options} */
import react from "@astrojs/react";
const prettyOptions = {
theme: "github-dark",
keepBackground: false,
tokensMap: {
fn: "entity.name.function"
}
// getHighlighter: (options) => getHighlighter({
// ...options,
// langs: [
// ...BUNDLED_LANGUAGES,
// {
// id: "proc",
// scopeName: "source.groq",
// path: "../../../../../src/grammars/proc.json",
// },
// ],
// }),
};
// https://astro.build/config
export default defineConfig({
site: "https://undefined.behavio.rs",
prefetch: true,
integrations: [tailwind(), sitemap(), robotsTxt(), mdx(), react()],
markdown: {
syntaxHighlight: false,
rehypePlugins: [[rehypePrettyCode, prettyOptions]]
}
});