-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
54 lines (40 loc) · 1.68 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// @ts-check
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import astroExpressiveCode, { ExpressiveCodeTheme } from 'astro-expressive-code'
import fs from 'node:fs';
import node from '@astrojs/node';
import sitemap from '@astrojs/sitemap';
import react from '@astrojs/react';
// const jsoncStringDark = fs.readFileSync(new URL(`./dark.jsonc`, import.meta.url), 'utf-8')
// const dark = ExpressiveCodeTheme.fromJSONString(jsoncStringDark)
// const jsoncStringLight = fs.readFileSync(new URL(`./light.jsonc`, import.meta.url), 'utf-8')
// const light = ExpressiveCodeTheme.fromJSONString(jsoncStringLight)
const jsoncStringDark = fs.readFileSync(new URL(`./tokyonightdark.jsonc`, import.meta.url), 'utf-8')
const dark = ExpressiveCodeTheme.fromJSONString(jsoncStringDark)
const jsoncStringLight = fs.readFileSync(new URL(`./tokyonightlight.jsonc`, import.meta.url), 'utf-8')
const light = ExpressiveCodeTheme.fromJSONString(jsoncStringLight)
// https://astro.build/config
export default defineConfig({
site: 'https://mahoosively.gay',
prefetch: {
prefetchAll: true
},
scopedStyleStrategy: "attribute",
integrations: [astroExpressiveCode({
themes: [dark, light],
// themes: ['catppuccin-latte', 'catppuccin-mocha', "catppuccin-macchiato", 'tokyo-night', 'material-theme-palenight'],
minSyntaxHighlightingColorContrast: 0,
useThemedSelectionColors: true,
styleOverrides: {
// You can also override styles
borderRadius: '0.5rem',
borderWidth: '2px',
codeFontFamily: "JetBrains Mono",
uiFontFamily: 'Fira Code'
}
}), mdx(), sitemap(), react()],
adapter: node({
mode: 'standalone',
}),
});