From 7c79e5cee930baf484aacb07b8a7ca93127de63a Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Sun, 7 Dec 2025 19:07:57 +0800 Subject: Initialize starlight with astro framework Signed-off-by: Asai Neko --- astro.config.mjs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 astro.config.mjs (limited to 'astro.config.mjs') diff --git a/astro.config.mjs b/astro.config.mjs new file mode 100644 index 0000000..9a25601 --- /dev/null +++ b/astro.config.mjs @@ -0,0 +1,26 @@ +// @ts-check +import { defineConfig } from 'astro/config'; +import starlight from '@astrojs/starlight'; + +// https://astro.build/config +export default defineConfig({ + integrations: [ + starlight({ + title: 'My Docs', + social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }], + sidebar: [ + { + label: 'Guides', + items: [ + // Each item here is one entry in the navigation menu. + { label: 'Example Guide', slug: 'guides/example' }, + ], + }, + { + label: 'Reference', + autogenerate: { directory: 'reference' }, + }, + ], + }), + ], +}); -- cgit v1.2.3