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