import { defineConfig } from "astro/config"; import starlight from "@astrojs/starlight"; import rehypeKatex from "rehype-katex"; import remarkMath from "remark-math"; // https://astro.build/config export default defineConfig({ base: process.env.BASE_URL ?? "/", integrations: [ starlight({ title: "Panorama", social: { github: "https://git.mzhang.io/michael/panorama", }, sidebar: [ { label: "The panorama dream", link: "/dream" }, { label: "High Level Design", autogenerate: { directory: "high-level-design" }, }, { label: "Technical Docs", autogenerate: { directory: "technical-docs" }, }, { label: "Protocols", autogenerate: { directory: "protocols" }, }, ], customCss: ["./node_modules/katex/dist/katex.min.css"], }), ], markdown: { remarkPlugins: [remarkMath], rehypePlugins: [rehypeKatex], }, });