-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathastro.config.mjs
More file actions
331 lines (329 loc) · 13.7 KB
/
Copy pathastro.config.mjs
File metadata and controls
331 lines (329 loc) · 13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
import { defineConfig } from "astro/config";
import { unified } from "@astrojs/markdown-remark";
import starlight from "@astrojs/starlight";
import mermaid from "astro-mermaid";
import starlightBlog from "starlight-blog";
import starlightGitHubAlerts from "starlight-github-alerts";
import starlightLlmsTxt from "starlight-llms-txt";
import starlightAgent from "./docs/plugins/starlight-agent/index.mjs";
import rewriteDocsLinks from "./docs/rewrite-docs-links.mjs";
/**
* Builds blog author entries, defaulting each picture to the author's GitHub avatar.
* @param {Record<string, {name: string, url: string, picture?: string}>} authors
*/
function createAuthors(authors) {
return Object.fromEntries(
Object.entries(authors).map(([key, author]) => [key, { ...author, picture: author.picture ?? `https://github.com/${key}.png?size=200` }]),
);
}
export default defineConfig({
site: "https://githubnext.github.io",
base: "/gh-aw-cao",
redirects: {
"/control-plane-authentication": "/gh-aw-cao/authentication/",
"/getting-started": "/gh-aw-cao/setup-quickstarts/",
"/setup": "/gh-aw-cao/setup-quickstarts/",
},
srcDir: "./docs",
markdown: {
processor: unified({
remarkPlugins: [[rewriteDocsLinks, { base: "/gh-aw-cao" }]],
}),
},
integrations: [
mermaid(),
starlight({
title: "CAO",
description: "Enterprise control planes for GitHub Agentic Workflows.",
logo: {
light: "./docs/assets/logo-day.svg",
dark: "./docs/assets/logo-night.svg",
alt: "",
},
favicon: "/favicon.svg",
customCss: ["./docs/styles/branding.css"],
plugins: [
starlightBlog({
title: "Central Agentic Ops Blog",
recentPostCount: 12,
navigation: "none",
authors: createAuthors({
mnkiefer: {
name: "Mara Kiefer",
url: "https://github.com/mnkiefer",
},
pelikhan: {
name: "Peli de Halleux",
url: "https://github.com/pelikhan",
},
copilot: {
name: "Copilot",
url: "https://github.com/features/copilot",
picture: "https://avatars.githubusercontent.com/in/1143301?s=200&v=4",
},
}),
}),
starlightGitHubAlerts(),
starlightAgent({
projectName: "Central Agentic Ops",
description: "Machine-readable navigation for the authoritative CAO documentation and dashboard architecture.",
repository: "githubnext/gh-aw-cao",
}),
starlightLlmsTxt({
projectName: "Central Agentic Ops",
description: "Run, observe, and evolve governed GitHub Agentic Workflow campaigns from a central control plane.",
details: "Start with the high-value routes below. Markdown and Starlight source documents are authoritative; the llms*.txt files are generated during every documentation build.",
promote: [
"index",
"architecture-at-a-glance",
"setup-quickstarts",
],
demote: [
"blog/**",
"operational-value/reports/**",
"activity-cache-compression-analysis",
"dashboard-overview-*",
"dashboard-view-catalog",
"operational-observability-visualization-specification",
"dashboard-language-specification",
],
exclude: [
"activity*",
"admission",
"agent-*",
"agentic-*",
"architecture",
"authentication",
"author-*",
"blog/**",
"cao-cli",
"configuration",
"control-*",
"dashboard*",
"deployment*",
"execution-*",
"glossary",
"marketplace",
"operational-*",
"operations",
"orchestrators-*",
"rollout-*",
"setup-fine-*",
"setup-multiple-*",
"setup-one-*",
],
optionalLinks: [
{
label: "Set up a CAO control plane",
url: "https://github.com/githubnext/gh-aw-cao/blob/main/skills/setup-cao/SKILL.md",
description: "Use setup-cao for bootstrap, repository scope, and authentication.",
},
{
label: "Debug a CAO failure",
url: "https://github.com/githubnext/gh-aw-cao/blob/main/skills/debug-cao/SKILL.md",
description: "Use debug-cao for policy, credential, workflow, Activity, dashboard, or safe-output failures.",
},
{
label: "Add an existing campaign",
url: "https://github.com/githubnext/gh-aw-cao/blob/main/skills/add-cao-campaign/SKILL.md",
description: "Use add-cao-campaign to discover, compare, and install a catalog campaign.",
},
{
label: "Create a new campaign",
url: "https://github.com/githubnext/gh-aw-cao/blob/main/skills/create-cao-campaign/SKILL.md",
description: "Use create-cao-campaign to author an orchestrator and its workers.",
},
{
label: "Analyze CAO activity",
url: "https://github.com/githubnext/gh-aw-cao/blob/main/skills/analyze-cao/SKILL.md",
description: "Use analyze-cao to answer questions from a published Activity snapshot.",
},
{
label: "Use or extend the CAO CLI",
url: "https://github.com/githubnext/gh-aw-cao/blob/main/skills/cao-cli/SKILL.md",
description: "Use cao-cli for command selection, workflow invocation, and CLI development.",
},
{
label: "Compact project context",
url: "https://githubnext.github.io/gh-aw-cao/llms-small.txt",
description: "Load only when a routed skill needs project context.",
},
{
label: "Dashboard data access",
url: "https://githubnext.github.io/gh-aw-cao/cao/llms.txt",
description: "Choose bounded dashboard artifacts, MCP queries, or local SQLite analysis.",
},
{
label: "Machine-readable resource index",
url: "https://githubnext.github.io/gh-aw-cao/agent/resources.json",
description: "Discover every documentation route without loading its body.",
},
{
label: "Scoped documentation index",
url: "https://githubnext.github.io/gh-aw-cao/agent/llms.txt",
description: "Browse the small set of important HTML and JSON resources.",
},
],
}),
],
markdown: {
processedDirs: ["."],
},
components: {
Footer: "./docs/components/SiteFooter.astro",
Hero: "./docs/components/HierarchyHero.astro",
SocialIcons: "./docs/components/HeaderLinks.astro",
ThemeSelect: "./docs/components/ThemeToggle.astro",
},
editLink: {
baseUrl: "https://github.com/githubnext/gh-aw-cao/edit/main/",
},
head: [
{
// Starlight renders wide markdown tables and code blocks as horizontally
// scrollable regions (`overflow: auto`), but they aren't keyboard focusable,
// so keyboard users can't reach clipped content (axe
// `scrollable-region-focusable`, WCAG 2.1.1/2.1.3). Make overflowing
// regions focusable with an accessible name.
tag: "script",
content: `(function () {
function findPrecedingHeadingText(headings, table) {
let text = null;
for (const heading of headings) {
if (heading.compareDocumentPosition(table) & Node.DOCUMENT_POSITION_FOLLOWING) {
text = heading.textContent.trim();
} else {
break;
}
}
return text;
}
function markScrollableRegions() {
document.querySelectorAll(".sl-markdown-content").forEach((content) => {
const headings = [...content.querySelectorAll("h1, h2, h3, h4, h5, h6")];
const seenLabels = new Map();
let unlabeledCount = 0;
content.querySelectorAll("table, pre").forEach((region) => {
if (region.scrollWidth <= region.clientWidth) return;
if (!region.hasAttribute("tabindex")) region.setAttribute("tabindex", "0");
if (region.hasAttribute("aria-label") || region.hasAttribute("aria-labelledby")) return;
const headingText = findPrecedingHeadingText(headings, region);
const labelPrefix = region.matches("pre") ? "Scrollable code example" : "Scrollable table";
let label;
if (headingText) {
const labelKey = \`\${labelPrefix}:\${headingText}\`;
const count = (seenLabels.get(labelKey) || 0) + 1;
seenLabels.set(labelKey, count);
label = count > 1 ? \`\${labelPrefix}: \${headingText} (\${count})\` : \`\${labelPrefix}: \${headingText}\`;
} else {
unlabeledCount += 1;
label = \`\${labelPrefix} \${unlabeledCount}\`;
}
region.setAttribute("aria-label", label);
});
});
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", markScrollableRegions);
} else {
markScrollableRegions();
}
window.addEventListener("resize", markScrollableRegions);
document.addEventListener("astro:page-load", markScrollableRegions);
})();`,
},
],
social: [
{
icon: "github",
label: "GitHub repository",
href: "https://github.com/githubnext/gh-aw-cao",
},
],
sidebar: [
{
label: "Overview",
items: [
{ label: "What is Central Agentic Ops?", link: "/architecture-at-a-glance/" },
{ label: "How the control plane works", link: "/architecture/" },
],
},
{
label: "Get started",
items: [
{ label: "Set up the control plane", link: "/setup-quickstarts/" },
{ label: "Add a campaign", link: "/catalog/" },
{ label: "CAO commands", link: "/cao-cli/" },
{ label: "Authentication", link: "/authentication/" },
],
},
{
label: "Run safely",
items: [
{ label: "Control plane status", link: "/cao/" },
{ label: "Admission gates", link: "/admission/" },
{ label: "Roll out a campaign", link: "/rollout-and-routing/" },
{ label: "Monitor and recover", link: "/operations/" },
{ label: "Emergency stop", link: "/operations/#emergency-stop" },
],
},
{
label: "Deploy",
items: [
{ label: "Deployment options", link: "/deployment/" },
{ label: "GitHub Actions only", link: "/deployment-actions/" },
{ label: "Actions with GitHub Apps", link: "/deployment-actions-github-app/" },
{ label: "Actions with a PAT", link: "/deployment-actions-pat/" },
{ label: "Azure", link: "/deployment-azure/" },
{ label: "Coolify", link: "/deployment-coolify/" },
{ label: "Upstash Redis", link: "/deployment-upstash/" },
{ label: "Managed Redis", link: "/deployment-managed-redis/" },
],
},
{
label: "Dashboard",
items: [
{ label: "At a glance", link: "/dashboard/" },
{ label: "Data ingestion", link: "/dashboard-data-ingestion/" },
{ label: "Data model", link: "/dashboard-data-model/" },
{ label: "Language", link: "/dashboard-language/" },
{ label: "Language specification", link: "/dashboard-language-specification/" },
{ label: "View catalog", link: "/dashboard-view-catalog/" },
{ label: "WebMCP", link: "/dashboard-webmcp/" },
{ label: "Agent analysis", link: "/agent-analysis/" },
{ label: "Agent-readable documentation", link: "/agent-resources/" },
{
label: "Views",
items: [
{ label: "Overview", link: "/dashboard-overview/" },
{ label: "Overview components", link: "/dashboard-overview-components/" },
],
},
],
},
{
label: "Reference",
items: [
{ label: "Configuration", link: "/configuration/" },
{ label: "CAO Activity", link: "/activity/" },
{ label: "Campaign package marketplace", link: "/marketplace/" },
{ label: "Operational value", link: "/operational-value/" },
{ label: "Deployment and governance", link: "/deployment-and-governance/" },
{ label: "Execution and safety", link: "/execution-and-safety/" },
{ label: "Agentic workflow smells", link: "/agentic-workflow-smells/" },
{ label: "Glossary", link: "/glossary/" },
{ label: "Orchestrators and workers", link: "/orchestrators-and-workers/" },
],
},
{
label: "Maintain",
items: [
{ label: "Add a campaign", link: "/operations/#adding-a-campaign" },
{ label: "Add a worker", link: "/operations/#adding-a-worker" },
{ label: "Validate changes", link: "/operations/#change-validation" },
],
},
],
}),
],
});