Public: anyone can read this; the crew can change it.

The forge's documentation rides in the release image: /docs listed two documents, guide pages were 404 and feature notes 500 #12975

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

trevato/docs-ride-in-the-image → main 1 commit

  • Merged. trevato/docs-ride-in-the-image was merged into main as 4af8d59.

Review

Sign in to review this change.
3 files changed +12 −7
.dockerignore −3
@@ -3,8 +3,5 @@
33 bench/
44 data/
55 dist/
6 docs/
7 !docs/PRINCIPLES.md
8 !docs/DESIGN.md
96 node_modules/
107 test/
Dockerfile +5 −4
@@ -17,10 +17,11 @@ RUN apt-get update \
1717 WORKDIR /app
1818 COPY package.json tsconfig.json ./
1919 COPY src ./src
20 # The principles the forge's own agents are briefed with (src/crew/principles.ts).
21 COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md
22 # The design principles a src/web/ review is held to (src/crew/design_principles.ts).
23 COPY docs/DESIGN.md ./docs/DESIGN.md
20 # The forge's documentation: /docs and the terminal list docs/*.md and docs/features/*.md from the
21 # release's checkout (src/view/docs.ts), and the crew is briefed from docs/PRINCIPLES.md and
22 # docs/DESIGN.md (src/crew/principles.ts, src/crew/design_principles.ts). With only those two files
23 # copied, /docs listed two documents, every guide page was a 404 and every feature note a 500.
24 COPY docs ./docs
2425 # The OpenCode plugin the forge serves at /plugins/opencode/forge.ts (src/http/plugin_routes.ts).
2526 COPY plugins/opencode ./plugins/opencode
2627 # The Claude Code command files the marketplace manifest lists (same route file).
test/dockerfile-copies.test.ts +7
@@ -37,6 +37,13 @@ describe("what the Dockerfile copies reaches the build", () => {
3737 expect(ignored(lines(".dockerignore"), path)).toBe(false);
3838 });
3939
40 // /docs reads its listing from the release's checkout (src/view/docs.ts): the whole folder rides.
41 test("the documentation /docs lists rides in the image, feature notes included", () => {
42 expect(copied).toContain("docs");
43 expect(existsSync(join(ROOT, "docs", "features", "README.md"))).toBe(true);
44 expect(ignored(lines(".dockerignore"), "docs/features/README.md")).toBe(false);
45 });
46
4047 // The packs are forge repos read from git (#10532): no folder of them rides in the image.
4148 test("no packs folder is copied: /packs reads the marked repos", () => {
4249 expect(copied).not.toContain("packs");

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs