28 lines
739 B
JavaScript
28 lines
739 B
JavaScript
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 remarkButterflyTags from './src/lib/remarkButterflyTags.mjs';
|
|
import { siteConfig } from './site.config.mjs';
|
|
|
|
export default defineConfig({
|
|
site: siteConfig.site.url,
|
|
output: 'static',
|
|
integrations: [sitemap()],
|
|
markdown: {
|
|
processor: unified({
|
|
remarkPlugins: [remarkMath, remarkButterflyTags],
|
|
rehypePlugins: [rehypeMathjax],
|
|
}),
|
|
shikiConfig: {
|
|
theme: 'github-dark',
|
|
wrap: true,
|
|
langAlias: {
|
|
BASH: 'bash',
|
|
YAML: 'yaml',
|
|
},
|
|
},
|
|
},
|
|
});
|