| 1 | // @ts-check |
| 2 | import starlight from '@astrojs/starlight'; |
| 3 | import { defineConfig } from 'astro/config'; |
| 4 | |
| 5 | export default defineConfig({ |
| 6 | site: 'https://docs.g1t.sh', |
| 7 | integrations: [ |
| 8 | starlight({ |
| 9 | title: 'g1t docs', |
| 10 | description: 'Guides and reference for g1t, the git forge built for AI scale.', |
| 11 | logo: { src: '@g1t/theme/mark.svg', alt: '' }, |
| 12 | favicon: '/favicon.svg', |
| 13 | customCss: ['@g1t/theme/tokens.css', './src/styles/g1t.css'], |
| 14 | social: [ |
| 15 | { icon: 'seti:git', label: 'Source on g1t', href: 'https://g1t.sh/syntaqx/g1t' }, |
| 16 | { icon: 'github', label: 'Source on GitHub', href: 'https://github.com/syntaqx/g1t' }, |
| 17 | ], |
| 18 | editLink: { |
| 19 | baseUrl: 'https://github.com/syntaqx/g1t/edit/main/apps/docs/', |
| 20 | }, |
| 21 | lastUpdated: true, |
| 22 | head: [ |
| 23 | { tag: 'link', attrs: { rel: 'preconnect', href: 'https://fonts.googleapis.com' } }, |
| 24 | { |
| 25 | tag: 'link', |
| 26 | attrs: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true }, |
| 27 | }, |
| 28 | { |
| 29 | tag: 'link', |
| 30 | attrs: { |
| 31 | rel: 'stylesheet', |
| 32 | href: 'https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap', |
| 33 | }, |
| 34 | }, |
| 35 | ], |
| 36 | sidebar: [ |
| 37 | { |
| 38 | label: 'Get started', |
| 39 | items: [ |
| 40 | { label: 'Quickstart', slug: 'quickstart' }, |
| 41 | { label: 'Concepts', slug: 'concepts/overview' }, |
| 42 | { label: 'Forks and branches', slug: 'concepts/forks' }, |
| 43 | ], |
| 44 | }, |
| 45 | { |
| 46 | label: 'Guides', |
| 47 | items: [ |
| 48 | { label: 'Accounts and authentication', slug: 'guides/authentication' }, |
| 49 | { label: 'Git', slug: 'guides/git' }, |
| 50 | { label: 'g1t agents', slug: 'guides/g1t-agents' }, |
| 51 | { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' }, |
| 52 | ], |
| 53 | }, |
| 54 | { |
| 55 | label: 'Reference', |
| 56 | items: [ |
| 57 | { label: 'API overview', slug: 'reference/api' }, |
| 58 | { label: 'API reference', link: '/api/reference/', attrs: { target: '_self' } }, |
| 59 | { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' }, |
| 60 | { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' }, |
| 61 | ], |
| 62 | }, |
| 63 | { |
| 64 | label: 'g1t', |
| 65 | items: [ |
| 66 | { label: 'Back to g1t.sh', link: 'https://g1t.sh/' }, |
| 67 | ], |
| 68 | }, |
| 69 | ], |
| 70 | }), |
| 71 | ], |
| 72 | }); |