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

133 lines4,454 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, the git forge for teams of agents.',
16 components: {
17 Header: './src/components/Header.astro',
18 PageTitle: './src/components/PageTitle.astro',
19 SiteTitle: './src/components/SiteTitle.astro',
20 SocialIcons: './src/components/SocialIcons.astro',
21 },
22 // Each tab under the header shows its own part of the sidebar.
23 routeMiddleware: './src/route-data.ts',
24 expressiveCode: {
25 themes: ['github-dark-default'],
26 // Plain panels with a copy button, without window chrome.
27 defaultProps: { frame: 'none' },
28 styleOverrides: {
29 borderRadius: '0.75rem',
30 borderColor: 'var(--g1t-line)',
31 codeBackground: 'var(--g1t-surface)',
32 codeFontSize: '0.8125rem',
33 frames: {
34 editorBackground: 'var(--g1t-surface)',
35 terminalBackground: 'var(--g1t-surface)',
36 terminalTitlebarBackground: 'var(--g1t-raised)',
37 terminalTitlebarBorderBottomColor: 'var(--g1t-line)',
38 editorTabBarBackground: 'var(--g1t-raised)',
39 shadowColor: 'transparent',
40 },
41 },
42 },
43 logo: { src: '@g1t/theme/mark.svg', alt: '' },
44 favicon: '/favicon.svg',
45 customCss: ['@g1t/theme/tokens.css', './src/styles/g1t.css'],
46 social: [
47 { icon: 'seti:git', label: 'Source on g1t', href: 'https://g1t.sh/syntaqx/g1t' },
48 { icon: 'github', label: 'Source on GitHub', href: 'https://github.com/syntaqx/g1t' },
49 ],
50 editLink: {
51 baseUrl: 'https://github.com/syntaqx/g1t/edit/main/apps/docs/',
52 },
53 lastUpdated: true,
54 head: [
55 { tag: 'link', attrs: { rel: 'preconnect', href: 'https://fonts.googleapis.com' } },
56 {
57 tag: 'link',
58 attrs: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true },
59 },
60 {
61 tag: 'link',
62 attrs: {
63 rel: 'stylesheet',
64 href: 'https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap',
65 },
66 },
67 ],
68 sidebar: [
69 {
70 label: 'Get started',
71 items: [
72 { label: 'Quickstart', slug: 'quickstart' },
73 { label: 'How g1t works', slug: 'concepts/overview' },
74 ],
75 },
76 {
77 label: 'Projects',
78 items: [
79 { label: 'Projects', slug: 'guides/projects' },
80 { label: 'Deployments', slug: 'guides/deployments' },
81 { label: 'Secrets and variables', slug: 'guides/secrets-and-variables' },
82 ],
83 },
84 {
85 label: 'Agents',
86 items: [
87 { label: 'g1t agents', slug: 'guides/g1t-agents' },
88 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
89 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
90 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
91 ],
92 },
93 {
94 label: 'Connect your tools',
95 items: [
96 { label: 'Integrations', slug: 'guides/integrations' },
97 { label: 'Model providers', slug: 'guides/models' },
98 { label: 'Webhooks', slug: 'guides/webhooks' },
99 { label: 'GitHub Actions', slug: 'guides/actions' },
100 ],
101 },
102 {
103 label: 'Landing changes',
104 items: [
105 { label: 'The merge queue', slug: 'guides/merge-queue' },
106 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
107 { label: 'Forks and branches', slug: 'concepts/forks' },
108 ],
109 },
110 {
111 label: 'Workspaces',
112 items: [
113 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
114 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
115 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
116 { label: 'Git', slug: 'guides/git' },
117 ],
118 },
119 {
120 label: 'Reference',
121 items: [
122 { label: 'API overview', slug: 'reference/api' },
123 { label: 'MCP tools', slug: 'reference/mcp' },
124 { label: 'Try it in the explorer', link: '/api/reference/', attrs: { target: '_self' } },
125 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
126 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
127 ],
128 },
129 ...apiGroups,
130 ],
131 }),
132 ],
133});