Skip to content
189 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/g1t-agents/': '/guides/working-with-g1t/',
15 },
16 integrations: [
17 starlight({
18 title: 'g1t docs',
19 description: 'Guides and reference for g1t, the workspace where a team and its agents talk, work and ship.',
20 components: {
21 Footer: './src/components/Footer.astro',
22 Head: './src/components/Head.astro',
23 Header: './src/components/Header.astro',
24 PageTitle: './src/components/PageTitle.astro',
25 SiteTitle: './src/components/SiteTitle.astro',
26 SocialIcons: './src/components/SocialIcons.astro',
27 },
28 // Each tab under the header shows its own part of the sidebar.
29 routeMiddleware: './src/route-data.ts',
30 expressiveCode: {
31 themes: ['github-dark-default'],
32 // Plain panels with a copy button, without window chrome.
33 defaultProps: { frame: 'none' },
34 styleOverrides: {
35 borderRadius: '0.75rem',
36 borderColor: 'var(--g1t-line)',
37 codeBackground: 'var(--g1t-surface)',
38 codeFontSize: '0.8125rem',
39 frames: {
40 editorBackground: 'var(--g1t-surface)',
41 terminalBackground: 'var(--g1t-surface)',
42 terminalTitlebarBackground: 'var(--g1t-raised)',
43 terminalTitlebarBorderBottomColor: 'var(--g1t-line)',
44 editorTabBarBackground: 'var(--g1t-raised)',
45 shadowColor: 'transparent',
46 },
47 },
48 },
49 logo: { src: '@g1t/theme/mark.svg', alt: '' },
50 favicon: '/favicon.svg',
51 customCss: ['@g1t/theme/fonts.css', '@g1t/theme/tokens.css', './src/styles/g1t.css'],
52 editLink: {
53 baseUrl: 'https://g1t.sh/flagon-io/g1t/blob/main/apps/docs/',
54 },
55 lastUpdated: true,
56 head: [
57 { tag: 'link', attrs: { rel: 'icon', href: '/favicon.ico', sizes: '32x32' } },
58 { tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/icon-192.png' } },
59 { tag: 'link', attrs: { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' } },
60 ],
61 sidebar: [
62 {
63 label: 'Get started',
64 items: [
65 { label: 'Quickstart', slug: 'quickstart' },
66 { label: 'How g1t works', slug: 'concepts/overview' },
67 { label: 'Your inbox', slug: 'guides/inbox' },
68 { label: 'Search and Explore', slug: 'guides/search' },
69 { label: 'Status and incidents', slug: 'guides/status' },
70 ],
71 },
72 {
73 label: 'Chat and agents',
74 items: [
75 { label: 'Chat', slug: 'guides/chat' },
76 { label: 'Agents', slug: 'guides/agents' },
77 { label: 'What agents can do for whom', slug: 'guides/agent-access' },
78 { label: 'Docs', slug: 'guides/docs', badge: { text: 'Soon', variant: 'default' } },
79 { label: 'Agents in your chat app', slug: 'guides/chat-app', badge: { text: 'Soon', variant: 'default' } },
80 ],
81 },
82 {
83 label: 'Projects',
84 items: [
85 { label: 'Projects', slug: 'guides/projects' },
86 { label: 'Deployments', slug: 'guides/deployments' },
87 { label: 'Deployments API', slug: 'guides/deployments-api' },
88 { label: 'Packages', slug: 'guides/packages' },
89 { label: 'Container images', slug: 'guides/containers' },
90 { label: 'npm', slug: 'guides/npm' },
91 { label: 'Cargo', slug: 'guides/cargo' },
92 { label: 'Composer', slug: 'guides/composer' },
93 { label: 'Maven', slug: 'guides/maven' },
94 { label: 'NuGet', slug: 'guides/nuget' },
95 { label: 'RubyGems', slug: 'guides/rubygems' },
96 { label: 'Go modules', slug: 'guides/go' },
97 { label: 'Secrets and variables', slug: 'guides/secrets-and-variables' },
98 ],
99 },
100 {
101 label: 'Security',
102 items: [
103 { label: 'Security', slug: 'guides/security' },
104 { label: 'Dependency updates', slug: 'guides/dependency-updates' },
105 { label: 'Secret protection', slug: 'guides/security/secret-protection' },
106 { label: 'Code scanning', slug: 'guides/security/code-scanning' },
107 { label: 'Supply chain', slug: 'guides/security/supply-chain' },
108 { label: 'Security overview', slug: 'guides/security/security-overview' },
109 { label: "What's free and what's paid", slug: 'guides/security/pricing' },
110 ],
111 },
112 {
113 label: 'Agents on code',
114 items: [
115 { label: "g1t's agent", slug: 'guides/working-with-g1t' },
116 { label: 'Guardrails', slug: 'guides/guardrails' },
117 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
118 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
119 { label: 'Agents, sessions and memory', slug: 'guides/agents-and-memory' },
120 { label: 'Context hub', slug: 'guides/context-hub' },
121 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
122 ],
123 },
124 {
125 label: 'Connect your tools',
126 items: [
127 { label: 'Integrations', slug: 'guides/integrations' },
128 { label: 'Model providers', slug: 'guides/models' },
129 { label: 'AI Gateway', slug: 'guides/ai-gateway' },
130 { label: 'Webhooks', slug: 'guides/webhooks' },
131 { label: 'GitHub Actions', slug: 'guides/actions' },
132 { label: 'Self-hosted runners', slug: 'guides/self-hosted-runners' },
133 ],
134 },
135 {
136 label: 'Landing changes',
137 items: [
138 { label: 'Pull requests and checks', slug: 'guides/pull-requests' },
139 { label: 'Checks', slug: 'guides/checks' },
140 { label: 'Pull requests into other branches', slug: 'guides/base-branches' },
141 { label: 'Labels', slug: 'guides/labels' },
142 { label: 'Milestones', slug: 'guides/milestones' },
143 { label: 'The merge queue', slug: 'guides/merge-queue' },
144 { label: 'Rules', slug: 'guides/rules' },
145 { label: 'CODEOWNERS', slug: 'guides/codeowners' },
146 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
147 { label: 'Forks and branches', slug: 'concepts/forks' },
148 ],
149 },
150 {
151 label: 'Workspaces',
152 items: [
153 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
154 { label: 'GitHub', slug: 'guides/github' },
155 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
156 { label: 'Access and roles', slug: 'guides/access-and-roles' },
157 { label: 'Teams', slug: 'guides/teams' },
158 { label: 'Managing a repository', slug: 'guides/managing-repositories' },
159 { label: 'Releases', slug: 'guides/releases' },
160 { label: 'Transferring a repository', slug: 'guides/transferring-repositories' },
161 { label: 'Audit log', slug: 'guides/audit-log' },
162 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
163 { label: 'Git', slug: 'guides/git' },
164 { label: 'Run g1t yourself', slug: 'guides/self-hosting' },
165 ],
166 },
167 {
168 label: 'Reference',
169 items: [
170 { label: 'API overview', slug: 'reference/api' },
171 { label: 'MCP tools', slug: 'reference/mcp' },
172 { label: 'Rate limits', slug: 'reference/rate-limits' },
173 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
174 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
175 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
176 ],
177 },
178 {
179 label: 'About',
180 items: [
181 { label: "What g1t can't do yet", slug: 'about/limitations' },
182 { label: 'An open letter to Cloudflare', slug: 'about/open-letter-to-cloudflare' },
183 ],
184 },
185 ...apiGroups,
186 ],
187 }),
188 ],
189});