g1t/apps/docs/astro.config.mjs

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