|
| 1 | +// @ts-check |
| 2 | +import { defineConfig } from 'astro/config'; |
| 3 | +import starlight from '@astrojs/starlight'; |
| 4 | + |
| 5 | +// https://astro.build/config |
| 6 | +export default defineConfig({ |
| 7 | + integrations: [ |
| 8 | + starlight({ |
| 9 | + title: 'ByteBox Docs', |
| 10 | + description: 'Official documentation for ByteBox: setup, operation, concepts, and API behavior.', |
| 11 | + logo: { |
| 12 | + src: './src/assets/logo_banner.png', |
| 13 | + alt: 'ByteBox', |
| 14 | + replacesTitle: true, |
| 15 | + }, |
| 16 | + favicon: '/favicon.png', |
| 17 | + customCss: ['./src/styles/bytebox-docs.css'], |
| 18 | + social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/pinkpixel-dev/bytebox' }], |
| 19 | + components: { |
| 20 | + Sidebar: './src/components/starlight/Sidebar.astro', |
| 21 | + Footer: './src/components/starlight/Footer.astro', |
| 22 | + MobileMenuFooter: './src/components/starlight/MobileMenuFooter.astro', |
| 23 | + }, |
| 24 | + sidebar: [ |
| 25 | + { |
| 26 | + label: 'Foundations', |
| 27 | + items: [ |
| 28 | + { label: 'Getting Started', slug: 'getting-started' }, |
| 29 | + { label: 'Running ByteBox', slug: 'running-bytebox' }, |
| 30 | + { label: 'Architecture', slug: 'architecture' }, |
| 31 | + { label: 'Core Concepts', slug: 'core-concepts' }, |
| 32 | + { label: 'Data Model', slug: 'data-model' }, |
| 33 | + { label: 'Theming & Appearance', slug: 'theming-and-appearance' }, |
| 34 | + ], |
| 35 | + }, |
| 36 | + { |
| 37 | + label: 'Integrations', |
| 38 | + items: [ |
| 39 | + { label: 'API Overview', slug: 'api-overview' }, |
| 40 | + { label: 'Backup & Portability', slug: 'backup-and-portability' }, |
| 41 | + { label: 'Docker Deployment', slug: 'docker-deployment' }, |
| 42 | + { label: 'Electron Desktop', slug: 'electron-desktop' }, |
| 43 | + { label: 'Cloudflare Pages', slug: 'cloudflare-pages' }, |
| 44 | + ], |
| 45 | + }, |
| 46 | + { |
| 47 | + label: 'Development', |
| 48 | + items: [ |
| 49 | + { label: 'Developer Guide', slug: 'developer-guide' }, |
| 50 | + { label: 'Contributing', slug: 'contributing' }, |
| 51 | + { label: 'Troubleshooting', slug: 'troubleshooting' }, |
| 52 | + { label: 'Changelog Highlights', slug: 'changelog' }, |
| 53 | + ], |
| 54 | + }, |
| 55 | + ], |
| 56 | + }), |
| 57 | + ], |
| 58 | +}); |
0 commit comments