mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-06 01:16:46 -06:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
// 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} */
|
|
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()],
|
|
markdown: {
|
|
syntaxHighlight: false,
|
|
rehypePlugins: [[rehypePrettyCode, prettyOptions]],
|
|
},
|
|
});
|