import { defineConfig } from 'astro/config'; import remarkMath from 'remark-math'; import rehypeKatex from 'rehype-katex'; import { remarkObsidian } from './src/lib/remark-obsidian.mjs'; import { buildSlugMap, CONTENT_DIR } from './src/lib/quartz-compat.mjs'; const slugMap = buildSlugMap(CONTENT_DIR); export default defineConfig({ site: 'https://garden.c0smere.net', // 'file' => /A/B.html served as /A/B — matches Quartz's URL shape build: { format: 'file' }, markdown: { remarkPlugins: [[remarkObsidian, { slugMap }], remarkMath], rehypePlugins: [rehypeKatex], shikiConfig: { themes: { light: 'github-light', dark: 'github-dark' }, }, }, });