forked from moeyua/astro-theme-typography
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
37 lines (36 loc) · 1.05 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
import { defineConfig } from 'astro/config';
import UnoCSS from 'unocss/astro';
import { THEME_CONFIG } from "./src/theme.config";
import robotsTxt from "astro-robots-txt";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: THEME_CONFIG.website,
prefetch: true,
markdown: {
shikiConfig: {
// Use build-in Shiki theme
// https://github.com/shikijs/shiki/blob/main/docs/themes.md
theme: 'one-dark-pro',
// Or visit here for more themes
// https://shikiji.netlify.app/guide/dual-themes#light-dark-dual-themes
// experimentalThemes: {
// light: 'github-light',
// dark: 'github-dark',
// },
// Add your customized languages
// Note that shiki has many build-in langs including .astro!
// https://github.com/shikijs/shiki/blob/main/docs/languages.md
langs: [],
// auto wrap for better display
wrap: true,
},
},
integrations: [
UnoCSS({
injectReset: true
}),
robotsTxt(),
sitemap()
]
});