Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Docs as their own app; shared theme package | 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', | |
| Docs worth reading, and kept that way | 10 | description: 'Guides and reference for g1t, the git forge for teams of agents.', |
| 11 | components: { | |
| Docs in the shape of docs.continue.dev | 12 | Header: './src/components/Header.astro', |
| 13 | PageTitle: './src/components/PageTitle.astro', | |
| Docs worth reading, and kept that way | 14 | SiteTitle: './src/components/SiteTitle.astro', |
| 15 | SocialIcons: './src/components/SocialIcons.astro', | |
| 16 | }, | |
| Docs in the shape of docs.continue.dev | 17 | // Each tab under the header shows its own part of the sidebar. |
| 18 | routeMiddleware: './src/route-data.ts', | |
| Docs worth reading, and kept that way | 19 | expressiveCode: { |
| 20 | themes: ['github-dark-default'], | |
| Docs in the shape of docs.continue.dev | 21 | // Plain panels with a copy button, without window chrome. |
| 22 | defaultProps: { frame: 'none' }, | |
| Docs worth reading, and kept that way | 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 | }, | |
| Docs as their own app; shared theme package | 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' }, | |
| Docs worth reading, and kept that way | 68 | { label: 'How g1t works', slug: 'concepts/overview' }, |
| 69 | ], | |
| 70 | }, | |
| 71 | { | |
| Projects: what a workspace builds and runs, first on every page | 72 | label: 'Projects', |
| 73 | items: [ | |
| 74 | { label: 'Projects', slug: 'guides/projects' }, | |
| 75 | { label: 'Deployments', slug: 'guides/deployments' }, | |
| 76 | { label: 'Secrets and variables', slug: 'guides/secrets-and-variables' }, | |
| 77 | ], | |
| 78 | }, | |
| 79 | { | |
| Docs worth reading, and kept that way | 80 | label: 'Agents', |
| 81 | items: [ | |
| 82 | { label: 'g1t agents', slug: 'guides/g1t-agents' }, | |
| 83 | { label: 'Outcomes and plans', slug: 'guides/outcomes' }, | |
| 84 | { label: 'Talking to agents', slug: 'guides/talking-to-agents' }, | |
| 85 | { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' }, | |
| 86 | ], | |
| 87 | }, | |
| 88 | { | |
| Docs: integrations, and your own model provider | 89 | label: 'Connect your tools', |
| 90 | items: [ | |
| 91 | { label: 'Integrations', slug: 'guides/integrations' }, | |
| Model providers: gateway tokens for endpoints, tidier rows, and the docs | 92 | { label: 'Model providers', slug: 'guides/models' }, |
| Webhooks: every event, to your own addresses, signed and retried | 93 | { label: 'Webhooks', slug: 'guides/webhooks' }, |
| GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs | 94 | { label: 'GitHub Actions', slug: 'guides/actions' }, |
| Docs: integrations, and your own model provider | 95 | ], |
| 96 | }, | |
| 97 | { | |
| Docs worth reading, and kept that way | 98 | label: 'Landing changes', |
| 99 | items: [ | |
| 100 | { label: 'The merge queue', slug: 'guides/merge-queue' }, | |
| 101 | { label: 'Sessions and why-blame', slug: 'guides/why-blame' }, | |
| Docs as their own app; shared theme package | 102 | { label: 'Forks and branches', slug: 'concepts/forks' }, |
| 103 | ], | |
| 104 | }, | |
| 105 | { | |
| Docs worth reading, and kept that way | 106 | label: 'Workspaces', |
| Docs as their own app; shared theme package | 107 | items: [ |
| Docs worth reading, and kept that way | 108 | { label: 'Accounts and sign-in', slug: 'guides/authentication' }, |
| 109 | { label: 'Workspaces and tokens', slug: 'guides/workspaces' }, | |
| 110 | { label: 'Usage and billing', slug: 'guides/usage-and-billing' }, | |
| Docs as their own app; shared theme package | 111 | { label: 'Git', slug: 'guides/git' }, |
| 112 | ], | |
| 113 | }, | |
| 114 | { | |
| 115 | label: 'Reference', | |
| 116 | items: [ | |
| 117 | { label: 'API overview', slug: 'reference/api' }, | |
| Docs in the shape of docs.continue.dev | 118 | { label: 'API explorer', link: '/api/reference/', attrs: { target: '_self' } }, |
| Docs worth reading, and kept that way | 119 | { label: 'MCP tools', slug: 'reference/mcp' }, |
| Docs as their own app; shared theme package | 120 | { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' }, |
| 121 | { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' }, | |
| 122 | ], | |
| 123 | }, | |
| 124 | ], | |
| 125 | }), | |
| 126 | ], | |
| 127 | }); |