summaryrefslogtreecommitdiff
path: root/astro.config.mjs
diff options
context:
space:
mode:
authorAsai Neko <sugar@sne.moe>2025-12-07 19:07:57 +0800
committerAsai Neko <sugar@sne.moe>2025-12-07 19:07:57 +0800
commit7c79e5cee930baf484aacb07b8a7ca93127de63a (patch)
tree7038869caab18074d1314c545a081850a9b1875c /astro.config.mjs
Initialize starlight with astro framework
Signed-off-by: Asai Neko <sugar@sne.moe>
Diffstat (limited to 'astro.config.mjs')
-rw-r--r--astro.config.mjs26
1 files changed, 26 insertions, 0 deletions
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' },
+ },
+ ],
+ }),
+ ],
+});