flagon-io/g1t

public

Git for AI scale: a forge for thousands of agents working on the same code at once.

g1t/apps/docs/astro.config.mjs

135 lines5,093 bytesCodeBlame

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 package1// @ts-check
2import starlight from '@astrojs/starlight';
3import { defineConfig } from 'astro/config';
4
Merge branch 'worktree-agent-ab2e39e11a6493412'5import { generateApiReference } from './scripts/api-reference.mjs';
6
7// A page per REST operation, written from the OpenAPI document.
8const apiGroups = generateApiReference();
9
Docs as their own app; shared theme package10export default defineConfig({
11 site: 'https://docs.g1t.sh',
12 integrations: [
13 starlight({
14 title: 'g1t docs',
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas15 description: 'Guides and reference for g1t, where people and agents ship software together.',
Docs worth reading, and kept that way16 components: {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look17 Footer: './src/components/Footer.astro',
18 Head: './src/components/Head.astro',
Docs in the shape of docs.continue.dev19 Header: './src/components/Header.astro',
20 PageTitle: './src/components/PageTitle.astro',
Docs worth reading, and kept that way21 SiteTitle: './src/components/SiteTitle.astro',
22 SocialIcons: './src/components/SocialIcons.astro',
23 },
Docs in the shape of docs.continue.dev24 // Each tab under the header shows its own part of the sidebar.
25 routeMiddleware: './src/route-data.ts',
Docs worth reading, and kept that way26 expressiveCode: {
27 themes: ['github-dark-default'],
Docs in the shape of docs.continue.dev28 // Plain panels with a copy button, without window chrome.
29 defaultProps: { frame: 'none' },
Docs worth reading, and kept that way30 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 },
Docs as their own app; shared theme package45 logo: { src: '@g1t/theme/mark.svg', alt: '' },
46 favicon: '/favicon.svg',
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look47 customCss: ['@g1t/theme/fonts.css', '@g1t/theme/tokens.css', './src/styles/g1t.css'],
Docs as their own app; shared theme package48 editLink: {
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look49 baseUrl: 'https://g1t.sh/flagon-io/g1t/blob/main/apps/docs/',
Docs as their own app; shared theme package50 },
51 lastUpdated: true,
52 head: [
The fleet: g1t's new mark53 { 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' } },
Docs as their own app; shared theme package56 ],
57 sidebar: [
58 {
59 label: 'Get started',
60 items: [
61 { label: 'Quickstart', slug: 'quickstart' },
Docs worth reading, and kept that way62 { label: 'How g1t works', slug: 'concepts/overview' },
Search across all of g1t, Explore, and a command palette63 { label: 'Search and Explore', slug: 'guides/search' },
status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas64 { label: 'Status and incidents', slug: 'guides/status' },
Docs worth reading, and kept that way65 ],
66 },
67 {
Projects: what a workspace builds and runs, first on every page68 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' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API73 { label: 'Security', slug: 'guides/security' },
Projects: what a workspace builds and runs, first on every page74 ],
75 },
76 {
Docs worth reading, and kept that way77 label: 'Agents',
78 items: [
79 { label: 'g1t agents', slug: 'guides/g1t-agents' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API80 { label: 'Guardrails', slug: 'guides/guardrails' },
Docs worth reading, and kept that way81 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
82 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
Agents and memory, checks and conflicts, profiles, slug renames, custom domains83 { label: 'Agents, sessions and memory', slug: 'guides/agents-and-memory' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API84 { label: 'Context hub', slug: 'guides/context-hub' },
Docs worth reading, and kept that way85 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
86 ],
87 },
88 {
Docs: integrations, and your own model provider89 label: 'Connect your tools',
90 items: [
91 { label: 'Integrations', slug: 'guides/integrations' },
Model providers: gateway tokens for endpoints, tidier rows, and the docs92 { label: 'Model providers', slug: 'guides/models' },
Webhooks: every event, to your own addresses, signed and retried93 { label: 'Webhooks', slug: 'guides/webhooks' },
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs94 { label: 'GitHub Actions', slug: 'guides/actions' },
Docs: integrations, and your own model provider95 ],
96 },
97 {
Docs worth reading, and kept that way98 label: 'Landing changes',
99 items: [
Agents and memory, checks and conflicts, profiles, slug renames, custom domains100 { label: 'Pull requests and checks', slug: 'guides/pull-requests' },
Docs worth reading, and kept that way101 { label: 'The merge queue', slug: 'guides/merge-queue' },
102 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
Docs as their own app; shared theme package103 { label: 'Forks and branches', slug: 'concepts/forks' },
104 ],
105 },
106 {
Docs worth reading, and kept that way107 label: 'Workspaces',
Docs as their own app; shared theme package108 items: [
Docs worth reading, and kept that way109 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look110 { label: 'GitHub', slug: 'guides/github' },
Docs worth reading, and kept that way111 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look112 { label: 'Access and roles', slug: 'guides/access-and-roles' },
113 { label: 'Managing a repository', slug: 'guides/managing-repositories' },
114 { label: 'Transferring a repository', slug: 'guides/transferring-repositories' },
Agents get guardrails, run credentials, an audit log, a context hub, repository instructions and mentions; security upkeep; snake_case API115 { label: 'Audit log', slug: 'guides/audit-log' },
Docs worth reading, and kept that way116 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
Docs as their own app; shared theme package117 { label: 'Git', slug: 'guides/git' },
Running g1t yourself: the design, a docker compose proof, and a guide to what works today118 { label: 'Run g1t yourself', slug: 'guides/self-hosting' },
Docs as their own app; shared theme package119 ],
120 },
121 {
122 label: 'Reference',
123 items: [
124 { label: 'API overview', slug: 'reference/api' },
Docs worth reading, and kept that way125 { label: 'MCP tools', slug: 'reference/mcp' },
Merge branch 'worktree-agent-ab2e39e11a6493412'126 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
Docs as their own app; shared theme package127 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
128 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
129 ],
130 },
Merge branch 'worktree-agent-ab2e39e11a6493412'131 ...apiGroups,
Docs as their own app; shared theme package132 ],
133 }),
134 ],
135});

This file's history is long; its oldest lines are credited to the oldest commit read.