pr_01m47d24b0e6n91zwymwxg0vpx/apps/docs/astro.config.mjs

111 lines3,578 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 SiteTitle: './src/components/SiteTitle.astro',
13 SocialIcons: './src/components/SocialIcons.astro',
14 },
15 expressiveCode: {
16 themes: ['github-dark-default'],
17 styleOverrides: {
18 borderRadius: '0.75rem',
19 borderColor: 'var(--g1t-line)',
20 codeBackground: 'var(--g1t-surface)',
21 codeFontSize: '0.8125rem',
22 frames: {
23 editorBackground: 'var(--g1t-surface)',
24 terminalBackground: 'var(--g1t-surface)',
25 terminalTitlebarBackground: 'var(--g1t-raised)',
26 terminalTitlebarBorderBottomColor: 'var(--g1t-line)',
27 editorTabBarBackground: 'var(--g1t-raised)',
28 shadowColor: 'transparent',
29 },
30 },
31 },
32 logo: { src: '@g1t/theme/mark.svg', alt: '' },
33 favicon: '/favicon.svg',
34 customCss: ['@g1t/theme/tokens.css', './src/styles/g1t.css'],
35 social: [
36 { icon: 'seti:git', label: 'Source on g1t', href: 'https://g1t.sh/syntaqx/g1t' },
37 { icon: 'github', label: 'Source on GitHub', href: 'https://github.com/syntaqx/g1t' },
38 ],
39 editLink: {
40 baseUrl: 'https://github.com/syntaqx/g1t/edit/main/apps/docs/',
41 },
42 lastUpdated: true,
43 head: [
44 { tag: 'link', attrs: { rel: 'preconnect', href: 'https://fonts.googleapis.com' } },
45 {
46 tag: 'link',
47 attrs: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true },
48 },
49 {
50 tag: 'link',
51 attrs: {
52 rel: 'stylesheet',
53 href: 'https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap',
54 },
55 },
56 ],
57 sidebar: [
58 {
59 label: 'Get started',
60 items: [
61 { label: 'Quickstart', slug: 'quickstart' },
62 { label: 'How g1t works', slug: 'concepts/overview' },
63 ],
64 },
65 {
66 label: 'Agents',
67 items: [
68 { label: 'g1t agents', slug: 'guides/g1t-agents' },
69 { label: 'Outcomes and plans', slug: 'guides/outcomes' },
70 { label: 'Talking to agents', slug: 'guides/talking-to-agents' },
71 { label: 'Bring your own agent', slug: 'guides/bring-your-own-agent' },
72 ],
73 },
74 {
75 label: 'Connect your tools',
76 items: [
77 { label: 'Integrations', slug: 'guides/integrations' },
78 { label: 'Model providers', slug: 'guides/models' },
79 ],
80 },
81 {
82 label: 'Landing changes',
83 items: [
84 { label: 'The merge queue', slug: 'guides/merge-queue' },
85 { label: 'Sessions and why-blame', slug: 'guides/why-blame' },
86 { label: 'Forks and branches', slug: 'concepts/forks' },
87 ],
88 },
89 {
90 label: 'Workspaces',
91 items: [
92 { label: 'Accounts and sign-in', slug: 'guides/authentication' },
93 { label: 'Workspaces and tokens', slug: 'guides/workspaces' },
94 { label: 'Usage and billing', slug: 'guides/usage-and-billing' },
95 { label: 'Git', slug: 'guides/git' },
96 ],
97 },
98 {
99 label: 'Reference',
100 items: [
101 { label: 'API overview', slug: 'reference/api' },
102 { label: 'API reference', link: '/api/reference/', attrs: { target: '_self' } },
103 { label: 'MCP tools', slug: 'reference/mcp' },
104 { label: 'OpenAPI document', link: 'https://api.g1t.sh/openapi.json' },
105 { label: 'llms.txt', link: 'https://g1t.sh/llms.txt' },
106 ],
107 },
108 ],
109 }),
110 ],
111});