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.
| The docs' top bar is the app's: 4rem tall with a line under it, above the section tabs | 1 | /** |
| 2 | * The tabs under the header. Each shows its own part of the sidebar: the | |
| The docs read as sections, each with its own short sidebar. The tabs under the header are Get started, Chat and agents, Code, Projects, Workspaces, Self-hosting and API reference, each holding some of the sidebar's groups (tabs.ts), where Documentation held all of them in one long list; the API's groups are told apart by their pages, since a tag can share a guide group's name. A page's title is larger, with its section above it in lavender; sidebar groups are headed in the page's ink rather than small capitals, and the current page is a lavender pill. Links are the text's own colour on a lavender underline, On this page runs on a rail that marks the heading being read, and link cards turn toward the accent under the pointer. The header's right side is g1t.sh, Source and a Sign up button, then one theme button that moves between Auto, Light and Dark, in place of the full theme select; the phone menu keeps the select, and the two stay in step. | 3 | * groups named in its `groups`, in the sidebar's order. A page belongs to |
| 4 | * the tab holding its group; the home page, in no group, to the first. | |
| 5 | * The API reference tab takes every group not named here, since the | |
| 6 | * operations' groups are named after the API's tags. | |
| The docs' top bar is the app's: 4rem tall with a line under it, above the section tabs | 7 | */ |
| The docs read as sections, each with its own short sidebar. The tabs under the header are Get started, Chat and agents, Code, Projects, Workspaces, Self-hosting and API reference, each holding some of the sidebar's groups (tabs.ts), where Documentation held all of them in one long list; the API's groups are told apart by their pages, since a tag can share a guide group's name. A page's title is larger, with its section above it in lavender; sidebar groups are headed in the page's ink rather than small capitals, and the current page is a lavender pill. Links are the text's own colour on a lavender underline, On this page runs on a rail that marks the heading being read, and link cards turn toward the accent under the pointer. The header's right side is g1t.sh, Source and a Sign up button, then one theme button that moves between Auto, Light and Dark, in place of the full theme select; the phone menu keeps the select, and the two stay in step. | 8 | export type Tab = { label: string; groups: string[] }; |
| The docs' top bar is the app's: 4rem tall with a line under it, above the section tabs | 9 | |
| 10 | export const TABS: Tab[] = [ | |
| The docs read as sections, each with its own short sidebar. The tabs under the header are Get started, Chat and agents, Code, Projects, Workspaces, Self-hosting and API reference, each holding some of the sidebar's groups (tabs.ts), where Documentation held all of them in one long list; the API's groups are told apart by their pages, since a tag can share a guide group's name. A page's title is larger, with its section above it in lavender; sidebar groups are headed in the page's ink rather than small capitals, and the current page is a lavender pill. Links are the text's own colour on a lavender underline, On this page runs on a rail that marks the heading being read, and link cards turn toward the accent under the pointer. The header's right side is g1t.sh, Source and a Sign up button, then one theme button that moves between Auto, Light and Dark, in place of the full theme select; the phone menu keeps the select, and the two stay in step. | 11 | { label: 'Get started', groups: ['Get started', 'About'] }, |
| 12 | { label: 'Chat and agents', groups: ['Chat and agents', 'Agents on code'] }, | |
| 13 | { label: 'Code', groups: ['Landing changes', 'Security'] }, | |
| 14 | { label: 'Projects', groups: ['Projects'] }, | |
| 15 | { label: 'Workspaces', groups: ['Workspaces', 'Connect your tools'] }, | |
| 16 | { label: 'Self-hosting', groups: ['Run g1t yourself'] }, | |
| 17 | { label: 'API reference', groups: [] }, | |
| The docs' top bar is the app's: 4rem tall with a line under it, above the section tabs | 18 | ]; |
| 19 | ||
| The docs read as sections, each with its own short sidebar. The tabs under the header are Get started, Chat and agents, Code, Projects, Workspaces, Self-hosting and API reference, each holding some of the sidebar's groups (tabs.ts), where Documentation held all of them in one long list; the API's groups are told apart by their pages, since a tag can share a guide group's name. A page's title is larger, with its section above it in lavender; sidebar groups are headed in the page's ink rather than small capitals, and the current page is a lavender pill. Links are the text's own colour on a lavender underline, On this page runs on a rail that marks the heading being read, and link cards turn toward the accent under the pointer. The header's right side is g1t.sh, Source and a Sign up button, then one theme button that moves between Auto, Light and Dark, in place of the full theme select; the phone menu keeps the select, and the two stay in step. | 20 | const API = TABS[TABS.length - 1]; |
| 21 | ||
| 22 | /** The tab that holds the sidebar group with this label. */ | |
| 23 | export function tabForGroup(label: string): Tab { | |
| 24 | return TABS.find((tab) => tab.groups.includes(label)) ?? API; | |
| The docs' top bar is the app's: 4rem tall with a line under it, above the section tabs | 25 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.