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

134 lines5,016 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',
Docs worth reading, and kept that way15 description: 'Guides and reference for g1t, the git forge for teams of agents.',
16 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' },
Docs worth reading, and kept that way64 ],
65 },
66 {
Projects: what a workspace builds and runs, first on every page67 label: 'Projects',
68 items: [
69 { label: 'Projects', slug: 'guides/projects' },
70 { label: 'Deployments', slug: 'guides/deployments' },
71 { 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 API72 { label: 'Security', slug: 'guides/security' },
Projects: what a workspace builds and runs, first on every page73 ],
74 },
75 {
Docs worth reading, and kept that way76 label: 'Agents',
77 items: [
78 { 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 API79 { label: 'Guardrails', slug: 'guides/guardrails' },
Docs worth reading, and kept that way80 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
81 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
Agents and memory, checks and conflicts, profiles, slug renames, custom domains82 { 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 API83 { label: 'Context hub', slug: 'guides/context-hub' },
Docs worth reading, and kept that way84 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
85 ],
86 },
87 {
Docs: integrations, and your own model provider88 label: 'Connect your tools',
89 items: [
90 { label: 'Integrations', slug: 'guides/integrations' },
Model providers: gateway tokens for endpoints, tidier rows, and the docs91 { label: 'Model providers', slug: 'guides/models' },
Webhooks: every event, to your own addresses, signed and retried92 { label: 'Webhooks', slug: 'guides/webhooks' },
GitHub Actions on g1t, part three: .g1t/workflows, the pages, the docs93 { label: 'GitHub Actions', slug: 'guides/actions' },
Docs: integrations, and your own model provider94 ],
95 },
96 {
Docs worth reading, and kept that way97 label: 'Landing changes',
98 items: [
Agents and memory, checks and conflicts, profiles, slug renames, custom domains99 { label: 'Pull requests and checks', slug: 'guides/pull-requests' },
Docs worth reading, and kept that way100 { 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 package102 { label: 'Forks and branches', slug: 'concepts/forks' },
103 ],
104 },
105 {
Docs worth reading, and kept that way106 label: 'Workspaces',
Docs as their own app; shared theme package107 items: [
Docs worth reading, and kept that way108 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look109 { label: 'GitHub', slug: 'guides/github' },
Docs worth reading, and kept that way110 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
Invite-only launch: sign in with GitHub, repository access and lifecycle, many emails, a new look111 { label: 'Access and roles', slug: 'guides/access-and-roles' },
112 { label: 'Managing a repository', slug: 'guides/managing-repositories' },
113 { 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 API114 { label: 'Audit log', slug: 'guides/audit-log' },
Docs worth reading, and kept that way115 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
Docs as their own app; shared theme package116 { label: 'Git', slug: 'guides/git' },
Running g1t yourself: the design, a docker compose proof, and a guide to what works today117 { label: 'Run g1t yourself', slug: 'guides/self-hosting' },
Docs as their own app; shared theme package118 ],
119 },
120 {
121 label: 'Reference',
122 items: [
123 { label: 'API overview', slug: 'reference/api' },
Docs worth reading, and kept that way124 { label: 'MCP tools', slug: 'reference/mcp' },
Merge branch 'worktree-agent-ab2e39e11a6493412'125 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
Docs as their own app; shared theme package126 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
127 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
128 ],
129 },
Merge branch 'worktree-agent-ab2e39e11a6493412'130 ...apiGroups,
Docs as their own app; shared theme package131 ],
132 }),
133 ],
134});

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