flagon-io/g1t

public

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/apps/docs/astro.config.mjs

141 lines5,374 bytesCodeBlame
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 integrations: [
13 starlight({
14 title: 'g1t docs',
15 description: 'Guides and reference for g1t, where people and agents ship software together.',
16 components: {
17 Footer: './src/components/Footer.astro',
18 Head: './src/components/Head.astro',
19 Header: './src/components/Header.astro',
20 PageTitle: './src/components/PageTitle.astro',
21 SiteTitle: './src/components/SiteTitle.astro',
22 SocialIcons: './src/components/SocialIcons.astro',
23 },
24 // Each tab under the header shows its own part of the sidebar.
25 routeMiddleware: './src/route-data.ts',
26 expressiveCode: {
27 themes: ['github-dark-default'],
28 // Plain panels with a copy button, without window chrome.
29 defaultProps: { frame: 'none' },
30 styleOverrides: {
31 borderRadius: '0.75rem',
32 borderColor: 'var(--g1t-line)',
33 codeBackground: 'var(--g1t-surface)',
34 codeFontSize: '0.8125rem',
35 frames: {
36 editorBackground: 'var(--g1t-surface)',
37 terminalBackground: 'var(--g1t-surface)',
38 terminalTitlebarBackground: 'var(--g1t-raised)',
39 terminalTitlebarBorderBottomColor: 'var(--g1t-line)',
40 editorTabBarBackground: 'var(--g1t-raised)',
41 shadowColor: 'transparent',
42 },
43 },
44 },
45 logo: { src: '@g1t/theme/mark.svg', alt: '' },
46 favicon: '/favicon.svg',
47 customCss: ['@g1t/theme/fonts.css', '@g1t/theme/tokens.css', './src/styles/g1t.css'],
48 editLink: {
49 baseUrl: 'https://g1t.sh/flagon-io/g1t/blob/main/apps/docs/',
50 },
51 lastUpdated: true,
52 head: [
53 { tag: 'link', attrs: { rel: 'icon', href: '/favicon.ico', sizes: '32x32' } },
54 { tag: 'link', attrs: { rel: 'icon', type: 'image/png', sizes: '192x192', href: '/icon-192.png' } },
55 { tag: 'link', attrs: { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' } },
56 ],
57 sidebar: [
58 {
59 label: 'Get started',
60 items: [
61 { label: 'Quickstart', slug: 'quickstart' },
62 { label: 'How g1t works', slug: 'concepts/overview' },
63 { label: 'Search and Explore', slug: 'guides/search' },
64 { label: 'Status and incidents', slug: 'guides/status' },
65 ],
66 },
67 {
68 label: 'Projects',
69 items: [
70 { label: 'Projects', slug: 'guides/projects' },
71 { label: 'Deployments', slug: 'guides/deployments' },
72 { label: 'Secrets and variables', slug: 'guides/secrets-and-variables' },
73 { label: 'Security', slug: 'guides/security' },
74 ],
75 },
76 {
77 label: 'Agents',
78 items: [
79 { label: 'g1t agents', slug: 'guides/g1t-agents' },
80 { label: 'Guardrails', slug: 'guides/guardrails' },
81 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
82 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
83 { label: 'Agents, sessions and memory', slug: 'guides/agents-and-memory' },
84 { label: 'Context hub', slug: 'guides/context-hub' },
85 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
86 ],
87 },
88 {
89 label: 'Connect your tools',
90 items: [
91 { label: 'Integrations', slug: 'guides/integrations' },
92 { label: 'Model providers', slug: 'guides/models' },
93 { label: 'Webhooks', slug: 'guides/webhooks' },
94 { label: 'GitHub Actions', slug: 'guides/actions' },
95 { label: 'Self-hosted runners', slug: 'guides/self-hosted-runners' },
96 ],
97 },
98 {
99 label: 'Landing changes',
100 items: [
101 { label: 'Pull requests and checks', slug: 'guides/pull-requests' },
102 { label: 'The merge queue', slug: 'guides/merge-queue' },
103 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
104 { label: 'Forks and branches', slug: 'concepts/forks' },
105 ],
106 },
107 {
108 label: 'Workspaces',
109 items: [
110 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
111 { label: 'GitHub', slug: 'guides/github' },
112 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
113 { label: 'Access and roles', slug: 'guides/access-and-roles' },
114 { label: 'Managing a repository', slug: 'guides/managing-repositories' },
115 { label: 'Transferring a repository', slug: 'guides/transferring-repositories' },
116 { label: 'Audit log', slug: 'guides/audit-log' },
117 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
118 { label: 'Git', slug: 'guides/git' },
119 { label: 'Run g1t yourself', slug: 'guides/self-hosting' },
120 ],
121 },
122 {
123 label: 'Reference',
124 items: [
125 { label: 'API overview', slug: 'reference/api' },
126 { label: 'MCP tools', slug: 'reference/mcp' },
127 { label: "What g1t can't do yet", slug: 'reference/limitations' },
128 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
129 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
130 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
131 ],
132 },
133 {
134 label: 'About',
135 items: [{ label: 'An open letter to Cloudflare', slug: 'about/open-letter-to-cloudflare' }],
136 },
137 ...apiGroups,
138 ],
139 }),
140 ],
141});