|
| 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://ahoy-cli.github.io", |
| 8 | + integrations: [ |
| 9 | + starlight({ |
| 10 | + title: "Ahoy", |
| 11 | + description: |
| 12 | + "Create self-documenting CLI programs with ease, using YAML files in your source tree", |
| 13 | + logo: { |
| 14 | + src: "./src/assets/logo.svg", |
| 15 | + }, |
| 16 | + customCss: ["./src/styles/custom.css"], |
| 17 | + |
| 18 | + social: [ |
| 19 | + { |
| 20 | + icon: "github", |
| 21 | + href: "https://github.com/ahoy-cli/ahoy", |
| 22 | + label: "GitHub", |
| 23 | + }, |
| 24 | + ], |
| 25 | + sidebar: [ |
| 26 | + { |
| 27 | + label: "Getting Started", |
| 28 | + items: [ |
| 29 | + { label: "Installation & Setup", slug: "guides/getting-started" }, |
| 30 | + { label: "Next Steps", slug: "guides/next-steps" }, |
| 31 | + { |
| 32 | + label: "Shell Autocompletion", |
| 33 | + slug: "guides/shell-autocompletion", |
| 34 | + }, |
| 35 | + ], |
| 36 | + }, |
| 37 | + { |
| 38 | + label: "Guides", |
| 39 | + items: [ |
| 40 | + { label: "Writing Commands", slug: "guides/writing-commands" }, |
| 41 | + { label: "Command Execution", slug: "guides/command-execution" }, |
| 42 | + { label: "Importing & Overriding", slug: "guides/importing" }, |
| 43 | + { label: "Environment", slug: "guides/environment" }, |
| 44 | + ], |
| 45 | + }, |
| 46 | + { |
| 47 | + label: "Reference", |
| 48 | + items: [ |
| 49 | + { label: "CLI Reference", slug: "reference/cli" }, |
| 50 | + { label: "Environment Reference", slug: "reference/environment" }, |
| 51 | + { label: "YAML Schema", slug: "reference/yaml-schema" }, |
| 52 | + ], |
| 53 | + }, |
| 54 | + ], |
| 55 | + }), |
| 56 | + ], |
| 57 | +}); |
0 commit comments