|
| 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://github.github.com', |
| 8 | + base: '/gh-stack/', |
| 9 | + trailingSlash: 'always', |
| 10 | + devToolbar: { |
| 11 | + enabled: false |
| 12 | + }, |
| 13 | + integrations: [ |
| 14 | + starlight({ |
| 15 | + title: 'GitHub Stacked PRs', |
| 16 | + description: 'Manage stacked branches and pull requests with the gh stack CLI extension.', |
| 17 | + favicon: '/favicon.svg', |
| 18 | + customCss: [ |
| 19 | + './src/styles/custom.css', |
| 20 | + ], |
| 21 | + social: [ |
| 22 | + { icon: 'github', label: 'GitHub', href: 'https://github.com/github/gh-stack' }, |
| 23 | + ], |
| 24 | + tableOfContents: { |
| 25 | + minHeadingLevel: 2, |
| 26 | + maxHeadingLevel: 4 |
| 27 | + }, |
| 28 | + pagination: true, |
| 29 | + expressiveCode: { |
| 30 | + frames: { |
| 31 | + showCopyToClipboardButton: true, |
| 32 | + }, |
| 33 | + }, |
| 34 | + sidebar: [ |
| 35 | + { |
| 36 | + label: 'Introduction', |
| 37 | + items: [ |
| 38 | + { label: 'Overview', slug: 'introduction/overview' }, |
| 39 | + ], |
| 40 | + }, |
| 41 | + { |
| 42 | + label: 'Getting Started', |
| 43 | + items: [ |
| 44 | + { label: 'Quick Start', slug: 'getting-started/quick-start' }, |
| 45 | + ], |
| 46 | + }, |
| 47 | + { |
| 48 | + label: 'Guides', |
| 49 | + items: [ |
| 50 | + { label: 'Working with Stacked PRs', slug: 'guides/using-prs' }, |
| 51 | + { label: 'Typical Workflows', slug: 'guides/workflows' }, |
| 52 | + ], |
| 53 | + }, |
| 54 | + { |
| 55 | + label: 'Reference', |
| 56 | + items: [ |
| 57 | + { label: 'CLI Commands', slug: 'reference/cli' }, |
| 58 | + ], |
| 59 | + }, |
| 60 | + { |
| 61 | + label: 'FAQ', |
| 62 | + slug: 'faq', |
| 63 | + }, |
| 64 | + ], |
| 65 | + }), |
| 66 | + ], |
| 67 | +}); |
0 commit comments