Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
230 linesCodeBlameRaw
1// @ts-check
2import starlight from '@astrojs/starlight';
3import { defineConfig } from 'astro/config';
4
5import { generateApiReference } from './scripts/api-reference.mjs';
6
7// A page per REST operation, written from the OpenAPI document.
8const apiGroups = generateApiReference();
9
10export default defineConfig({
11 site: 'https://docs.g1t.sh',
12 // Pages that moved, so links already shared still arrive.
13 redirects: {
14 '/guides/inbox/': '/guides/notifications/',
15 '/guides/today/': '/guides/home/',
16 // g1t no longer runs agents of its own: coding agents connect to it.
17 '/guides/g1t-agents/': '/guides/bring-your-own-agent/',
18 '/guides/working-with-g1t/': '/guides/bring-your-own-agent/',
19 '/guides/agents/': '/guides/bring-your-own-agent/',
20 '/guides/agent-abilities/': '/guides/bring-your-own-agent/',
21 '/guides/agent-access/': '/guides/bring-your-own-agent/',
22 '/guides/agent-memory/': '/guides/memory/',
23 '/guides/agent-routines/': '/guides/bring-your-own-agent/',
24 '/guides/agent-sessions/': '/guides/why-blame/',
25 '/guides/agent-skills/': '/guides/bring-your-own-agent/',
26 '/guides/agent-budgets/': '/guides/usage-and-billing/',
27 '/guides/agents-and-memory/': '/guides/memory/',
28 '/guides/talking-to-agents/': '/guides/bring-your-own-agent/',
29 '/guides/chat-app/': '/guides/chat/',
30 '/guides/customize/': '/guides/bring-your-own-agent/',
31 '/guides/marketplace/': '/guides/bring-your-own-agent/',
32 '/guides/models/': '/guides/integrations/',
33 '/guides/ai-gateway/': '/guides/integrations/',
34 '/guides/context-hub/': '/guides/memory/',
35 '/guides/spend/': '/guides/usage-and-billing/',
36 '/guides/outcomes/': '/guides/milestones/',
37 },
38 integrations: [
39 starlight({
40 title: 'g1t docs',
41 description: 'Guides and reference for g1t, where a team and its coding agents talk, build and ship.',
42 components: {
43 Footer: './src/components/Footer.astro',
44 Head: './src/components/Head.astro',
45 Header: './src/components/Header.astro',
46 PageTitle: './src/components/PageTitle.astro',
47 SiteTitle: './src/components/SiteTitle.astro',
48 SocialIcons: './src/components/SocialIcons.astro',
49 },
50 // Each tab under the header shows its own part of the sidebar.
51 routeMiddleware: './src/route-data.ts',
52 expressiveCode: {
53 // Dark first, as the base; the light one where the page is light.
54 // Starlight switches between them by <html data-theme>.
55 themes: ['github-dark-default', 'github-light-default'],
56 useDarkModeMediaQuery: false,
57 // Plain panels with a copy button, without window chrome.
58 defaultProps: { frame: 'none' },
59 styleOverrides: {
60 borderRadius: '0.75rem',
61 borderColor: 'var(--g1t-line)',
62 codeBackground: 'var(--g1t-surface)',
63 codeFontSize: '0.8125rem',
64 frames: {
65 editorBackground: 'var(--g1t-surface)',
66 terminalBackground: 'var(--g1t-surface)',
67 terminalTitlebarBackground: 'var(--g1t-raised)',
68 terminalTitlebarBorderBottomColor: 'var(--g1t-line)',
69 editorTabBarBackground: 'var(--g1t-raised)',
70 shadowColor: 'transparent',
71 },
72 },
73 },
74 logo: { src: '@g1t/theme/mark.svg', alt: '' },
75 favicon: '/favicon.svg',
76 customCss: [
77 '@g1t/theme/fonts.css',
78 '@g1t/theme/tokens.css',
79 './src/styles/light.css',
80 './src/styles/g1t.css',
81 ],
82 editLink: {
83 baseUrl: 'https://g1t.sh/flagon-io/g1t/blob/main/apps/docs/',
84 },
85 lastUpdated: true,
86 head: [
87 { tag: 'link', attrs: { rel: 'icon', href: '/favicon.ico', sizes: '32x32' } },
88 { tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/icon-192.png' } },
89 { tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '512x512', href: '/icon-512.png' } },
90 { tag: 'link', attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' } },
91 { tag: 'link', attrs: { rel: 'manifest', href: '/site.webmanifest' } },
92 // The browser's own bars, in the page's colour for the system's setting.
93 { tag: 'meta', attrs: { name: 'theme-color', content: '#0f0f11', media: '(prefers-color-scheme: dark)' } },
94 { tag: 'meta', attrs: { name: 'theme-color', content: '#fbfbfa', media: '(prefers-color-scheme: light)' } },
95 ],
96 sidebar: [
97 {
98 label: 'Get started',
99 items: [
100 { label: 'Quickstart', slug: 'quickstart' },
101 { label: 'How g1t works', slug: 'concepts/overview' },
102 { label: 'Home', slug: 'guides/home' },
103 { label: 'Notifications', slug: 'guides/notifications' },
104 { label: 'The desktop app', slug: 'guides/desktop' },
105 { label: 'The phone app', slug: 'guides/mobile' },
106 { label: 'Search and Explore', slug: 'guides/search' },
107 { label: 'Status and incidents', slug: 'guides/status' },
108 ],
109 },
110 {
111 label: 'Chat',
112 items: [
113 { label: 'Chat', slug: 'guides/chat' },
114 { label: 'Artifacts', slug: 'guides/artifacts' },
115 ],
116 },
117 {
118 label: 'Projects',
119 items: [
120 { label: 'Projects', slug: 'guides/projects' },
121 { label: 'Deployments', slug: 'guides/deployments' },
122 { label: 'Deployments API', slug: 'guides/deployments-api' },
123 { label: 'Observability', slug: 'guides/observability' },
124 { label: 'Packages', slug: 'guides/packages' },
125 { label: 'Container images', slug: 'guides/containers' },
126 { label: 'npm', slug: 'guides/npm' },
127 { label: 'Cargo', slug: 'guides/cargo' },
128 { label: 'Composer', slug: 'guides/composer' },
129 { label: 'Maven', slug: 'guides/maven' },
130 { label: 'NuGet', slug: 'guides/nuget' },
131 { label: 'RubyGems', slug: 'guides/rubygems' },
132 { label: 'Go modules', slug: 'guides/go' },
133 { label: 'Secrets and variables', slug: 'guides/secrets-and-variables' },
134 ],
135 },
136 {
137 label: 'Security',
138 items: [
139 { label: 'Security', slug: 'guides/security' },
140 { label: 'Dependency updates', slug: 'guides/dependency-updates' },
141 { label: 'Secret protection', slug: 'guides/security/secret-protection' },
142 { label: 'Code scanning', slug: 'guides/security/code-scanning' },
143 { label: 'Supply chain', slug: 'guides/security/supply-chain' },
144 { label: 'Advisories and reporting', slug: 'guides/security/advisories' },
145 { label: 'Security overview', slug: 'guides/security/security-overview' },
146 { label: "What's free and what's paid", slug: 'guides/security/pricing' },
147 ],
148 },
149 {
150 label: 'Coding agents',
151 items: [
152 { label: 'Connect a coding agent', slug: 'guides/bring-your-own-agent' },
153 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
154 { label: 'Memory', slug: 'guides/memory' },
155 ],
156 },
157 {
158 label: 'Connect your tools',
159 items: [
160 { label: 'Integrations', slug: 'guides/integrations' },
161 { label: 'Webhooks', slug: 'guides/webhooks' },
162 { label: 'GitHub Actions', slug: 'guides/actions' },
163 { label: 'Self-hosted runners', slug: 'guides/self-hosted-runners' },
164 { label: 'Guardrails', slug: 'guides/guardrails' },
165 ],
166 },
167 {
168 label: 'Landing changes',
169 items: [
170 { label: 'Pull requests and checks', slug: 'guides/pull-requests' },
171 { label: 'Checks', slug: 'guides/checks' },
172 { label: 'Pull requests into other branches', slug: 'guides/base-branches' },
173 { label: 'Labels', slug: 'guides/labels' },
174 { label: 'Milestones', slug: 'guides/milestones' },
175 { label: 'The merge queue', slug: 'guides/merge-queue' },
176 { label: 'Rules', slug: 'guides/rules' },
177 { label: 'CODEOWNERS', slug: 'guides/codeowners' },
178 { label: 'Forks and branches', slug: 'concepts/forks' },
179 ],
180 },
181 {
182 label: 'Workspaces',
183 items: [
184 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
185 { label: 'GitHub', slug: 'guides/github' },
186 { label: 'Mirroring', slug: 'guides/mirroring' },
187 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
188 { label: 'Access and roles', slug: 'guides/access-and-roles' },
189 { label: 'Permissions', slug: 'guides/permissions' },
190 { label: 'Teams', slug: 'guides/teams' },
191 { label: 'People and teams', slug: 'guides/people-and-teams' },
192 { label: 'Managing a repository', slug: 'guides/managing-repositories' },
193 { label: 'Releases', slug: 'guides/releases' },
194 { label: 'Transferring a repository', slug: 'guides/transferring-repositories' },
195 { label: 'Audit log', slug: 'guides/audit-log' },
196 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
197 { label: 'Git', slug: 'guides/git' },
198 ],
199 },
200 {
201 label: 'Run g1t yourself',
202 items: [
203 { label: 'With Docker Compose', slug: 'guides/self-hosting' },
204 { label: 'How a self-hosted g1t runs', slug: 'guides/self-hosting-architecture' },
205 { label: 'Deploy to Cloudflare', slug: 'guides/deploy-to-cloudflare' },
206 ],
207 },
208 {
209 label: 'Reference',
210 items: [
211 { label: 'API overview', slug: 'reference/api' },
212 { label: 'MCP tools', slug: 'reference/mcp' },
213 { label: 'Rate limits', slug: 'reference/rate-limits' },
214 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
215 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
216 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
217 ],
218 },
219 {
220 label: 'About',
221 items: [
222 { label: "What g1t can't do yet", slug: 'about/limitations' },
223 { label: 'An open letter to Cloudflare', slug: 'about/open-letter-to-cloudflare' },
224 ],
225 },
226 ...apiGroups,
227 ],
228 }),
229 ],
230});