From 4867005cfd9ce50df70e16fd7db2c388360a73c1 Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Thu, 15 Oct 2026 01:37:44 +0530 Subject: [PATCH] ND2: ready to instantiate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The as-built status names the PRs, what was verified (locally under wrangler dev and in Checks) and what was not (a live deploy, gated until a workspace is linked), and pins the versions with the reason for each — including the zod override the Nextra packages need. The epic is completed; the README status reads Shipped. Orun-Task: ND-3 Co-Authored-By: Claude Fable 5.1 --- specs/epics/README.md | 2 +- .../nextra-docs/IMPLEMENTATION-STATUS.md | 33 +++++++++++++++++-- specs/epics/nextra-docs/README.md | 4 +-- specs/epics/nextra-docs/epic.yaml | 2 +- .../epics/nextra-docs/implementation-plan.md | 6 ++-- 5 files changed, 37 insertions(+), 10 deletions(-) diff --git a/specs/epics/README.md b/specs/epics/README.md index 06c0944..e32de50 100644 --- a/specs/epics/README.md +++ b/specs/epics/README.md @@ -7,6 +7,6 @@ folder is the adoption; the merge creates the epic in the workspace. | Epic | Cluster | Status | What it is | |------|---------|--------|------------| -| [`nextra-docs/`](./nextra-docs/) | **ND** | Draft | Vercel's Nextra Docs Starter Kit, equivalent in content and function, running on Cloudflare Workers + Static Assets via OpenNext | +| [`nextra-docs/`](./nextra-docs/) | **ND** | ✅ Shipped | Vercel's Nextra Docs Starter Kit, equivalent in content and function, running on Cloudflare Workers + Static Assets via OpenNext | As-built ≠ intent: what shipped lives in each epic's `IMPLEMENTATION-STATUS.md`. diff --git a/specs/epics/nextra-docs/IMPLEMENTATION-STATUS.md b/specs/epics/nextra-docs/IMPLEMENTATION-STATUS.md index 3ebc0ca..be6dd1e 100644 --- a/specs/epics/nextra-docs/IMPLEMENTATION-STATUS.md +++ b/specs/epics/nextra-docs/IMPLEMENTATION-STATUS.md @@ -5,9 +5,9 @@ the code departed from `design.md` or from the upstream template. | Milestone | State | PR | |---|---|---| -| ND0 — the spec | | | -| ND1 — the docs on Workers | | | -| ND2 — ready to instantiate | | | +| ND0 — the spec | ✅ Shipped | [#1](https://github.com/sourceplane/nextra-docs/pull/1) | +| ND1 — the docs on Workers | ✅ Shipped | [#2](https://github.com/sourceplane/nextra-docs/pull/2) | +| ND2 — ready to instantiate | ✅ Shipped | [#3](https://github.com/sourceplane/nextra-docs/pull/3) | ## Departures from the upstream template @@ -66,3 +66,30 @@ working build. `.github/screenshot.png` and the Vercel deploy button; the upstream README is kept verbatim as `apps/web/README.md`. + +## Verified + +- Local: `pnpm typecheck`, `pnpm lint`, `pnpm test` (5 tests), `pnpm build` + (`next build` → Pagefind, 5 pages indexed → OpenNext bundle → + `populateCache local`) green; `wrangler dev` over `.open-next/worker.js`: + `/` 200 (`Introduction – Nextra`, the `My Project` logo, the + Introduction text, the `Nextra Docs Template` footer, the navbar with + About / Contact ↗ / GitHub / Discord), `/about`, `/another` (both + counters, the `demo.js` block), `/advanced` (the folder's own page) and + `/advanced/satori` 200, `/nope` 404, `/_pagefind/pagefind-entry.json` 200. +- CI: `Checks` green on [#2](https://github.com/sourceplane/nextra-docs/pull/2) + (install, wire, typecheck, lint, test, build on Node 22 — + [run](https://github.com/sourceplane/nextra-docs/actions/runs/38629100289)). +- Not verified: a live deploy. `ci.yml` is gated until the product is linked + to an Orun workspace with a Cloudflare connection. + +## Versions + +| Package | Version | Why | +|---|---|---| +| next | 16.3.8 | newest inside `@opennextjs/cloudflare` 1.20.11's peer range; 16.4.x fails at worker boot (`preview-props.json` manifest) | +| @opennextjs/cloudflare | ^1.20.11 | static-assets incremental cache + `populateCache local` | +| wrangler | ^4.151.0 | compatibility_date 2026-10-01 | +| nextra, nextra-theme-docs | ^4.6.1 | the current major (App Router); the upstream's Nextra 2 needs Next 13, which the adapter cannot build | +| pagefind | ^1.5.2 | the search index, run between `next build` and the OpenNext bundle | +| zod (pnpm override, Nextra packages only) | ~4.3.6 | 4.4+ rejects `nextra-theme-docs` 4.6's `Layout` props at prerender (`risks` ND-C) | diff --git a/specs/epics/nextra-docs/README.md b/specs/epics/nextra-docs/README.md index d435eb8..01fc114 100644 --- a/specs/epics/nextra-docs/README.md +++ b/specs/epics/nextra-docs/README.md @@ -8,7 +8,7 @@ The upstream content stays the content. What changes is the framework underneath | Field | Value | |-------|-------| -| Status | Draft | +| Status | ✅ Shipped — ND0–ND2 landed (#1, #2, #3) | | Cluster | **ND** (ND0–ND2) | | Owner(s) | `apps/web` (the site) · `tests/web` (the content-layout tests) | | Builds on | `cirrus-baseline` conventions (intent, components, `checks.yml` gate, gated `ci.yml`) — no bounded context of the fleet is needed | @@ -16,7 +16,7 @@ The upstream content stays the content. What changes is the framework underneath | Changes | Nextra 2 → Nextra 4 (file by file in `design.md`), plus the Workers build, the monorepo wrapper, tests and the deploy contract; the page text, the sidebar order, the theme settings and the counter component are preserved | | Decisions locked | (1) OpenNext on Workers + Static Assets, not Pages. (2) Nextra 4 on Next 16.3.8, not Nextra 2 on an old Next without OpenNext. (3) Every page is pre-rendered; `dynamicParams = false`. (4) Search is Pagefind, indexed between `next build` and the OpenNext bundle so it ships as static assets. (5) No infra root: the site binds nothing. | | Gate | ND1 is the first user-visible rung (the site serves from a Worker). | -| Shipped as | | +| Shipped as | `main` after [#3](https://github.com/sourceplane/nextra-docs/pull/3); verified locally under `wrangler dev` and in Checks, deploy gated until a workspace is linked | ## Read order diff --git a/specs/epics/nextra-docs/epic.yaml b/specs/epics/nextra-docs/epic.yaml index 810650e..32334cd 100644 --- a/specs/epics/nextra-docs/epic.yaml +++ b/specs/epics/nextra-docs/epic.yaml @@ -9,7 +9,7 @@ metadata: spec: title: "Vercel's Nextra Docs Starter Kit on Cloudflare Workers" summary: "The Vercel Nextra Docs Starter Kit — five MDX pages, a sidebar ordered by `_meta`, a navbar with an About page and an external Contact link, an interactive counter component, full-text search — runs equivalent in content and function on Cloudflare Workers + Static Assets through @opennextjs/cloudflare, inside the Cirrus baseline's repository conventions (Orun intent and components, credential-free checks, a gated Orun CI, one epic per repository). The upstream is Nextra 2 on Next 13's pages router, which the OpenNext adapter cannot build, so the port moves the same content to Nextra 4 on the App Router with Pagefind as the search index." - state: backlog + state: completed milestones: - name: "ND0 — the spec" exitCriteria: diff --git a/specs/epics/nextra-docs/implementation-plan.md b/specs/epics/nextra-docs/implementation-plan.md index 69a8e6e..b56d2ae 100644 --- a/specs/epics/nextra-docs/implementation-plan.md +++ b/specs/epics/nextra-docs/implementation-plan.md @@ -3,7 +3,7 @@ Milestones land in order; each task is one pull request on an `orun/ND-n-` branch with an `Orun-Task: ND-n` trailer. -## ND0 — the spec +## ND0 — the spec ✅ This doc set, `epic.yaml` and the task contracts, merged to `main`. @@ -11,7 +11,7 @@ This doc set, `epic.yaml` and the task contracts, merged to `main`. - the five documents and `epic.yaml` are on `main` - `tasks/ND-1.TaskContract.yaml`, `ND-2`, `ND-3` exist -## ND1 — the docs on Workers +## ND1 — the docs on Workers ✅ `apps/web` is the upstream content on Nextra 4 with the Workers build around it; `tests/web` pins the content directory and `_meta` to the @@ -22,7 +22,7 @@ upstream layout. - `.open-next/worker.js`, `.open-next/assets/` and `.open-next/assets/_pagefind/` exist after the build - `wrangler dev` (via `pnpm --filter @app/web preview`) answers `/` with the Introduction and the `My Project` logo, `/about`, `/another`, `/advanced` and `/advanced/satori` with their text, `/nope` with a 404, and `/_pagefind/pagefind-entry.json` with the index -## ND2 — ready to instantiate +## ND2 — ready to instantiate ✅ The README explains the port and how to run, test, preview and deploy it; `IMPLEMENTATION-STATUS.md` records what shipped and every departure.