pr_01m47d15m3e54sn21z27rpy5n9/apps/docs/astro.config.mjs
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 package | 1 | // @ts-check |
| 2 | import starlight from '@astrojs/starlight'; | |
| 3 | import { defineConfig } from 'astro/config'; | |
| 4 | ||
| 5 | export default defineConfig({ | |
| 6 | site: 'https://docs.g1t.sh', | |
| 7 | integrations: [ | |
| 8 | starlight({ | |
| 9 | title: 'g1t docs', | |
| Docs worth reading, and kept that way | 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 | }, | |
| Docs as their own app; shared theme package | 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' }, | |
| Docs worth reading, and kept that way | 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 | { | |
| Docs: integrations, and your own model provider | 75 | label: 'Connect your tools', |
| 76 | items: [ | |
| 77 | { label: 'Integrations', slug: 'guides/integrations' }, | |
| Model providers: gateway tokens for endpoints, tidier rows, and the docs | 78 | { label: 'Model providers', slug: 'guides/models' }, |
| Docs: integrations, and your own model provider | 79 | ], |
| 80 | }, | |
| 81 | { | |
| Docs worth reading, and kept that way | 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' }, | |
| Docs as their own app; shared theme package | 86 | { label: 'Forks and branches', slug: 'concepts/forks' }, |
| 87 | ], | |
| 88 | }, | |
| 89 | { | |
| Docs worth reading, and kept that way | 90 | label: 'Workspaces', |
| Docs as their own app; shared theme package | 91 | items: [ |
| Docs worth reading, and kept that way | 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' }, | |
| Docs as their own app; shared theme package | 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' } }, | |
| Docs worth reading, and kept that way | 103 | { label: 'MCP tools', slug: 'reference/mcp' }, |
| Docs as their own app; shared theme package | 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 | }); |