g1t/apps/docs/src/pages/api/reference.astro
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 | --- |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 2 | // The API explorer, for trying calls from the browser: Scalar's explorer over g1t's OpenAPI |
| Docs as their own app; shared theme package | 3 | // document. It is a standalone page because the explorer brings its own |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 4 | // layout. The reference itself is the Starlight pages under /reference/api/. |
| Docs as their own app; shared theme package | 5 | import '@g1t/theme/tokens.css'; |
| 6 | ||
| 7 | const configuration = { | |
| 8 | theme: 'none', | |
| 9 | darkMode: true, | |
| 10 | hideDarkModeToggle: true, | |
| 11 | hideClientButton: true, | |
| Docs worth reading, and kept that way | 12 | hideModels: true, |
| Docs as their own app; shared theme package | 13 | defaultHttpClient: { targetKey: 'shell', clientKey: 'curl' }, |
| 14 | }; | |
| 15 | --- | |
| 16 | ||
| 17 | <!doctype html> | |
| 18 | <html lang="en"> | |
| 19 | <head> | |
| 20 | <meta charset="utf-8" /> | |
| 21 | <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 22 | <title>API explorer · g1t docs</title> |
| Docs as their own app; shared theme package | 23 | <meta |
| 24 | name="description" | |
| 25 | content="Every g1t API endpoint, with an explorer to call them from the page." | |
| 26 | /> | |
| The fleet: g1t's new mark | 27 | <link rel="icon" href="/favicon.ico" sizes="32x32" /> |
| Docs as their own app; shared theme package | 28 | <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> |
| The fleet: g1t's new mark | 29 | <link rel="apple-touch-icon" href="/apple-touch-icon.png" /> |
| Docs as their own app; shared theme package | 30 | <link rel="canonical" href="https://docs.g1t.sh/api/reference/" /> |
| 31 | <link rel="preconnect" href="https://fonts.googleapis.com" /> | |
| 32 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
| 33 | <link | |
| 34 | rel="stylesheet" | |
| 35 | href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap" | |
| 36 | /> | |
| 37 | </head> | |
| 38 | <body> | |
| 39 | <header class="bar"> | |
| Docs worth reading, and kept that way | 40 | <a class="brand" href="/" aria-label="g1t docs home"> |
| 41 | <svg viewBox="0 0 32 32" aria-hidden="true"> | |
| 42 | <path d="M16 2.5 28 9.4 16 16.3 4 9.4Z" fill="currentColor"></path> | |
| 43 | <path d="M4 10.9 15.3 17.4V30.2L4 23.7Z" fill="currentColor" fill-opacity="0.55"></path> | |
| 44 | <path d="M28 10.9 16.7 17.4V30.2L28 23.7Z" fill="currentColor" fill-opacity="0.25"></path> | |
| 45 | </svg> | |
| 46 | <b>g1t</b> | |
| 47 | <span class="pill">Docs</span> | |
| 48 | </a> | |
| 49 | <nav> | |
| 50 | <a href="/">Guides</a> | |
| Merge branch 'worktree-agent-ab2e39e11a6493412' | 51 | <a href="/reference/api/">API reference</a> |
| Docs worth reading, and kept that way | 52 | <a href="/reference/mcp/">MCP tools</a> |
| 53 | <a href="https://api.g1t.sh/openapi.json">OpenAPI</a> | |
| 54 | <a href="https://g1t.sh/register" class="cta">Sign up</a> | |
| 55 | </nav> | |
| Docs as their own app; shared theme package | 56 | </header> |
| 57 | <script | |
| 58 | is:inline | |
| 59 | id="api-reference" | |
| 60 | data-url="https://api.g1t.sh/openapi.json" | |
| 61 | data-configuration={JSON.stringify(configuration)}></script> | |
| 62 | <script is:inline src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script> | |
| 63 | </body> | |
| 64 | </html> | |
| 65 | ||
| 66 | <style is:global> | |
| 67 | body { | |
| 68 | margin: 0; | |
| 69 | background: var(--g1t-bg); | |
| 70 | } | |
| 71 | ||
| 72 | /* Scalar's names for the shared g1t tokens. */ | |
| 73 | :root { | |
| Integrations: your own model provider, alerts that open issues, tickets agents read | 74 | /* The g1t header above: Scalar's sticky sidebar starts below it. */ |
| 75 | --scalar-custom-header-height: 56px; | |
| Docs as their own app; shared theme package | 76 | --scalar-font: var(--g1t-font-sans); |
| 77 | --scalar-font-code: var(--g1t-font-mono); | |
| 78 | } | |
| 79 | .dark-mode { | |
| 80 | --scalar-background-1: var(--g1t-bg); | |
| 81 | --scalar-background-2: var(--g1t-surface); | |
| 82 | --scalar-background-3: var(--g1t-raised); | |
| 83 | --scalar-border-color: var(--g1t-line); | |
| 84 | --scalar-color-1: var(--g1t-fg); | |
| 85 | --scalar-color-2: var(--g1t-muted); | |
| 86 | --scalar-color-3: var(--g1t-faint); | |
| Docs worth reading, and kept that way | 87 | --scalar-color-accent: #cfc6ff; |
| 88 | --scalar-background-accent: color-mix(in srgb, var(--g1t-merged) 12%, transparent); | |
| Docs as their own app; shared theme package | 89 | --scalar-button-1: var(--g1t-fg); |
| 90 | --scalar-button-1-color: var(--g1t-bg); | |
| 91 | --scalar-button-1-hover: #ffffff; | |
| 92 | --scalar-color-green: var(--g1t-accent); | |
| 93 | --scalar-color-blue: var(--g1t-info); | |
| 94 | --scalar-color-red: var(--g1t-danger); | |
| 95 | --scalar-color-orange: var(--g1t-warn); | |
| 96 | --scalar-sidebar-background-1: var(--g1t-bg); | |
| 97 | --scalar-sidebar-color-1: var(--g1t-fg); | |
| 98 | --scalar-sidebar-color-2: var(--g1t-muted); | |
| 99 | --scalar-sidebar-border-color: var(--g1t-line); | |
| 100 | --scalar-sidebar-item-hover-background: var(--g1t-surface); | |
| 101 | --scalar-sidebar-item-active-background: var(--g1t-raised); | |
| Docs worth reading, and kept that way | 102 | --scalar-sidebar-color-active: var(--g1t-fg); |
| Docs as their own app; shared theme package | 103 | } |
| 104 | ||
| 105 | .bar { | |
| Docs worth reading, and kept that way | 106 | position: sticky; |
| 107 | top: 0; | |
| 108 | z-index: 10; | |
| Docs as their own app; shared theme package | 109 | display: flex; |
| 110 | align-items: center; | |
| Docs worth reading, and kept that way | 111 | justify-content: space-between; |
| Docs as their own app; shared theme package | 112 | height: 56px; |
| Docs worth reading, and kept that way | 113 | padding: 0 20px; |
| 114 | background: color-mix(in srgb, var(--g1t-bg) 88%, transparent); | |
| 115 | backdrop-filter: blur(10px); | |
| Docs as their own app; shared theme package | 116 | border-bottom: 1px solid var(--g1t-line); |
| 117 | font: 14px var(--g1t-font-sans); | |
| 118 | } | |
| 119 | .bar a { | |
| 120 | color: var(--g1t-muted); | |
| 121 | text-decoration: none; | |
| 122 | } | |
| Docs worth reading, and kept that way | 123 | .bar .brand { |
| 124 | display: inline-flex; | |
| 125 | align-items: center; | |
| 126 | gap: 9px; | |
| Docs as their own app; shared theme package | 127 | color: var(--g1t-fg); |
| 128 | } | |
| Docs worth reading, and kept that way | 129 | .bar .brand svg { |
| 130 | width: 21px; | |
| 131 | height: 21px; | |
| 132 | } | |
| 133 | .bar .brand b { | |
| 134 | font-size: 17px; | |
| 135 | letter-spacing: -0.035em; | |
| 136 | } | |
| 137 | .bar .pill { | |
| 138 | border-radius: 999px; | |
| 139 | padding: 1px 8px; | |
| 140 | font-size: 11.5px; | |
| 141 | color: var(--g1t-muted); | |
| 142 | box-shadow: inset 0 0 0 1px var(--g1t-line-strong); | |
| 143 | } | |
| 144 | .bar nav { | |
| 145 | display: flex; | |
| 146 | align-items: center; | |
| 147 | gap: 4px; | |
| 148 | } | |
| 149 | .bar nav a { | |
| 150 | border-radius: 6px; | |
| 151 | padding: 5px 10px; | |
| 152 | font-size: 13.5px; | |
| 153 | } | |
| 154 | .bar nav a:hover { | |
| 155 | background: var(--g1t-raised); | |
| Docs as their own app; shared theme package | 156 | color: var(--g1t-fg); |
| 157 | } | |
| Docs worth reading, and kept that way | 158 | .bar nav a.cta { |
| 159 | margin-left: 4px; | |
| 160 | background: var(--g1t-fg); | |
| 161 | color: var(--g1t-bg); | |
| 162 | font-weight: 500; | |
| 163 | } | |
| 164 | @media (max-width: 760px) { | |
| 165 | .bar nav a:not(.cta) { | |
| 166 | display: none; | |
| 167 | } | |
| Docs as their own app; shared theme package | 168 | } |
| 169 | </style> |
This file's history is long; its oldest lines are credited to the oldest commit read.