astro.config.mjs
1 // @ts-check 2 3 import markdoc from "@astrojs/markdoc" 4 import starlight from "@astrojs/starlight" 5 import { defineConfig } from "astro/config" 6 7 // https://astro.build/config 8 export default defineConfig({ 9 integrations: [ 10 starlight({ 11 title: "Mercury Core", 12 logo: { src: "./public/favicon.svg" }, 13 social: [ 14 { 15 icon: "github", 16 label: "GitHub", 17 href: "https://github.com/tp-link-extender/MercuryCore", 18 }, 19 ], 20 sidebar: [ 21 { 22 label: "Install", 23 autogenerate: { directory: "install" }, 24 }, 25 { 26 label: "Architecture", 27 autogenerate: { directory: "architecture" }, 28 }, 29 { 30 label: "Services", 31 autogenerate: { directory: "services" }, 32 }, 33 { 34 label: "Guides", 35 autogenerate: { directory: "guides" }, 36 }, 37 ], 38 components: { 39 Head: "./src/components/Head.astro", 40 }, 41 customCss: ["./src/global.css", "./src/fonts/font-face.css"], 42 }), 43 markdoc(), 44 ], 45 })