pr_01m47d24b0e6n91zwymwxg0vpx/apps/docs/astro.config.mjs
| 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 for teams of agents.', |
| 11 | components: { |
| 12 | Header: './src/components/Header.astro', |
| 13 | PageTitle: './src/components/PageTitle.astro', |
| 14 | SiteTitle: './src/components/SiteTitle.astro', |
| 15 | SocialIcons: './src/components/SocialIcons.astro', |
| 16 | }, |
| 17 | // Each tab under the header shows its own part of the sidebar. |
| 18 | routeMiddleware: './src/route-data.ts', |
| 19 | expressiveCode: { |
| 20 | themes: ['github-dark-default'], |
| 21 | // Plain panels with a copy button, without window chrome. |
| 22 | defaultProps: { frame: 'none' }, |
| 23 | styleOverrides: { |
| 24 | borderRadius: '0.75rem', |
| 25 | borderColor: 'var(--g1t-line)', |
| 26 | codeBackground: 'var(--g1t-surface)', |
| 27 | codeFontSize: '0.8125rem', |
| 28 | frames: { |
| 29 | editorBackground: 'var(--g1t-surface)', |
| 30 | terminalBackground: 'var(--g1t-surface)', |
| 31 | terminalTitlebarBackground: 'var(--g1t-raised)', |
| 32 | terminalTitlebarBorderBottomColor: 'var(--g1t-line)', |
| 33 | editorTabBarBackground: 'var(--g1t-raised)', |
| 34 | shadowColor: 'transparent', |
| 35 | }, |
| 36 | }, |
| 37 | }, |
| 38 | logo: { src: '@g1t/theme/mark.svg', alt: '' }, |
| 39 | favicon: '/favicon.svg', |
| 40 | customCss: ['@g1t/theme/tokens.css', './src/styles/g1t.css'], |
| 41 | social: [ |
| 42 | { icon: 'seti:git', label: 'Source on g1t', href: 'https://g1t.sh/syntaqx/g1t' }, |
| 43 | { icon: 'github', label: 'Source on GitHub', href: 'https://github.com/syntaqx/g1t' }, |
| 44 | ], |
| 45 | editLink: { |
| 46 | baseUrl: 'https://github.com/syntaqx/g1t/edit/main/apps/docs/', |
| 47 | }, |
| 48 | lastUpdated: true, |
| 49 | head: [ |
| 50 | { tag: 'link', attrs: { rel: 'preconnect', href: 'https://fonts.googleapis.com' } }, |
| 51 | { |
| 52 | tag: 'link', |
| 53 | attrs: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true }, |
| 54 | }, |
| 55 | { |
| 56 | tag: 'link', |
| 57 | attrs: { |
| 58 | rel: 'stylesheet', |
| 59 | href: 'https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap', |
| 60 | }, |
| 61 | }, |
| 62 | ], |
| 63 | sidebar: [ |
| 64 | { |
| 65 | label: 'Get started', |
| 66 | items: [ |
| 67 | { label: 'Quickstart', slug: 'quickstart' }, |
| 68 | { label: 'How g1t works', slug: 'concepts/overview' }, |
| 69 | ], |
| 70 | }, |
| 71 | { |
| 72 | label: 'Agents', |
| 73 | items: [ |
| 74 | { label: 'g1t agents', slug: 'guides/g1t-agents' }, |
| 75 | { label: 'Outcomes and plans', slug: 'guides/outcomes' }, |
| 76 | { label: 'Talking to agents', slug: 'guides/talking-to-agents' }, |
| 77 | { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' }, |
| 78 | ], |
| 79 | }, |
| 80 | { |
| 81 | label: 'Connect your tools', |
| 82 | items: [ |
| 83 | { label: 'Integrations', slug: 'guides/integrations' }, |
| 84 | { label: 'Model providers', slug: 'guides/models' }, |
| 85 | { label: 'Webhooks', slug: 'guides/webhooks' }, |
| 86 | { label: 'GitHub Actions', slug: 'guides/actions' }, |
| 87 | ], |
| 88 | }, |
| 89 | { |
| 90 | label: 'Landing changes', |
| 91 | items: [ |
| 92 | { label: 'The merge queue', slug: 'guides/merge-queue' }, |
| 93 | { label: 'Deployments', slug: 'guides/deployments' }, |
| 94 | { label: 'Sessions and why-blame', slug: 'guides/why-blame' }, |
| 95 | { label: 'Forks and branches', slug: 'concepts/forks' }, |
| 96 | ], |
| 97 | }, |
| 98 | { |
| 99 | label: 'Workspaces', |
| 100 | items: [ |
| 101 | { label: 'Accounts and sign-in', slug: 'guides/authentication' }, |
| 102 | { label: 'Workspaces and tokens', slug: 'guides/workspaces' }, |
| 103 | { label: 'Usage and billing', slug: 'guides/usage-and-billing' }, |
| 104 | { label: 'Git', slug: 'guides/git' }, |
| 105 | ], |
| 106 | }, |
| 107 | { |
| 108 | label: 'Reference', |
| 109 | items: [ |
| 110 | { label: 'API overview', slug: 'reference/api' }, |
| 111 | { label: 'API explorer', link: '/api/reference/', attrs: { target: '_self' } }, |
| 112 | { label: 'MCP tools', slug: 'reference/mcp' }, |
| 113 | { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' }, |
| 114 | { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' }, |
| 115 | ], |
| 116 | }, |
| 117 | ], |
| 118 | }), |
| 119 | ], |
| 120 | }); |