import { defineConfig } from 'astro/config'; import sitemap from '@astrojs/sitemap'; import { unified } from '@astrojs/markdown-remark'; import rehypeMathjax from 'rehype-mathjax'; import remarkMath from 'remark-math'; import remarkHexoLinkCards from './src/lib/remarkHexoLinkCards.mjs'; import { siteConfig } from './site.config.mjs'; export default defineConfig({ site: siteConfig.site.url, output: 'static', integrations: [sitemap()], markdown: { processor: unified({ remarkPlugins: [remarkMath, remarkHexoLinkCards], rehypePlugins: [rehypeMathjax], }), shikiConfig: { theme: 'github-dark', wrap: true, langAlias: { BASH: 'bash', YAML: 'yaml', }, }, }, });