|
| 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 | + site: 'https://airbus5717.github.io', |
| 8 | + base: '/a7-py', |
| 9 | + integrations: [ |
| 10 | + starlight({ |
| 11 | + title: 'A7 Compiler Docs', |
| 12 | + description: 'Documentation for the A7 language and the a7-py compiler.', |
| 13 | + favicon: '/favicon.svg', |
| 14 | + customCss: ['./src/styles/docs.css'], |
| 15 | + pagefind: false, |
| 16 | + social: [ |
| 17 | + { |
| 18 | + icon: 'github', |
| 19 | + label: 'GitHub', |
| 20 | + href: 'https://github.com/airbus5717/a7-py', |
| 21 | + }, |
| 22 | + ], |
| 23 | + sidebar: [ |
| 24 | + { |
| 25 | + label: 'Get Started', |
| 26 | + items: [ |
| 27 | + { label: 'Installation', slug: 'getting-started/installation' }, |
| 28 | + { label: 'Quickstart', slug: 'getting-started/quickstart' }, |
| 29 | + ], |
| 30 | + }, |
| 31 | + { |
| 32 | + label: 'Compiler Usage', |
| 33 | + items: [ |
| 34 | + { label: 'CLI Reference', slug: 'compiler/cli-reference' }, |
| 35 | + { label: 'Modes and Output', slug: 'compiler/modes-and-output' }, |
| 36 | + { label: 'Pipeline Overview', slug: 'compiler/pipeline-overview' }, |
| 37 | + ], |
| 38 | + }, |
| 39 | + { |
| 40 | + label: 'Language Guide', |
| 41 | + items: [ |
| 42 | + { label: 'Types', slug: 'language/types' }, |
| 43 | + { |
| 44 | + label: 'Declarations and Expressions', |
| 45 | + slug: 'language/declarations-and-expressions', |
| 46 | + }, |
| 47 | + { label: 'Control Flow', slug: 'language/control-flow' }, |
| 48 | + { label: 'Functions', slug: 'language/functions' }, |
| 49 | + { label: 'Generics', slug: 'language/generics' }, |
| 50 | + { label: 'Memory Management', slug: 'language/memory-management' }, |
| 51 | + { label: 'Modules and Visibility', slug: 'language/modules-and-visibility' }, |
| 52 | + { label: 'Builtins and Operators', slug: 'language/builtins-and-operators' }, |
| 53 | + { label: 'Grammar Summary', slug: 'language/grammar-summary' }, |
| 54 | + { label: 'Diagnostics and Limits', slug: 'language/diagnostics-and-limits' }, |
| 55 | + ], |
| 56 | + }, |
| 57 | + { |
| 58 | + label: 'Examples', |
| 59 | + items: [ |
| 60 | + { label: 'Examples Index', slug: 'examples/examples-index' }, |
| 61 | + { label: 'By Topic', slug: 'examples/by-topic' }, |
| 62 | + ], |
| 63 | + }, |
| 64 | + { |
| 65 | + label: 'Project Status', |
| 66 | + items: [ |
| 67 | + { label: 'Changelog', slug: 'project/changelog' }, |
| 68 | + { label: 'Missing Features', slug: 'project/missing-features' }, |
| 69 | + ], |
| 70 | + }, |
| 71 | + ], |
| 72 | + }), |
| 73 | + ], |
| 74 | +}); |
0 commit comments