Initialize starlight with astro framework

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-07 19:07:57 +08:00
commit 7c79e5cee9
16 changed files with 5518 additions and 0 deletions

26
astro.config.mjs Normal file
View File

@@ -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' },
},
],
}),
],
});