-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
40 lines (39 loc) · 1.24 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
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";
import remarkToc from "remark-toc";
import { remarkObsidianImage } from "./src/utils/remark-obsidian-image";
// 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,
},
remarkPlugins: [remarkObsidianImage, [remarkToc, { heading: "目录" }]],
},
integrations: [
UnoCSS({
injectReset: true,
}),
robotsTxt(),
sitemap(),
],
});