Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/added-adr-0026-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Sync Hive ADR 0026 (sandbox runtime selection) to the docs site and list it in the ADR nav (#550).
2 changes: 1 addition & 1 deletion scripts/sync-hive-docs.main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async function runSync(): Promise<{ out: string; err: string }> {
() => {
const done =
exitSpy.mock.calls.length > 0 ||
joinCalls(logSpy).includes("adr/0025-central-stage-engine.md");
joinCalls(logSpy).includes("adr/0026-sandbox-runtime-selection.md");
if (!done) throw new Error("sync still running");
},
{ timeout: 5_000, interval: 5 }
Expand Down
6 changes: 6 additions & 0 deletions scripts/sync-hive-docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ describe("rewriteLinkTarget — Case 1: in-tree synced docs -> site route", () =
).toBe("/docs/hive/adr/0001-record-architecture-decisions");
});

it("rewrites ADR-0026 sandbox runtime selection link from adr/README.md to its adr/ route", () => {
expect(
rewriteLinkTarget("0026-sandbox-runtime-selection.md", ADR_README)
).toBe("/docs/hive/adr/0026-sandbox-runtime-selection");
});

it("preserves an #anchor on an in-tree link", () => {
expect(rewriteLinkTarget("architecture.md#the-governor-loop", README)).toBe(
"/docs/hive/architecture#the-governor-loop"
Expand Down
1 change: 1 addition & 0 deletions scripts/sync-hive-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const files: Array<{ source: string; target?: string; route?: string }> = [
{ source: "adr/0023-trusted-author-automerge.md" },
{ source: "adr/0024-provider-credential-lifecycle.md" },
{ source: "adr/0025-central-stage-engine.md" },
{ source: "adr/0026-sandbox-runtime-selection.md" },
];

// Hive pages authored in this repo (docs/content/hive/) rather than synced,
Expand Down
1 change: 1 addition & 0 deletions src/app/docs/page-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ const NAV_STRUCTURE_HIVE: Array<{ title: string; items: NavItem[] }> = [
{ '0023 Trusted-author automerge': 'adr/0023-trusted-author-automerge.md' },
{ '0024 Provider credential lifecycle': 'adr/0024-provider-credential-lifecycle.md' },
{ '0025 Central stage engine': 'adr/0025-central-stage-engine.md' },
{ '0026 Sandbox runtime selection': 'adr/0026-sandbox-runtime-selection.md' },
] },
{ 'Environment variable reference': 'env-vars.md' },
]
Expand Down
Loading