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
2 changes: 1 addition & 1 deletion specs/epics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
33 changes: 30 additions & 3 deletions specs/epics/nextra-docs/IMPLEMENTATION-STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 (`<title>Introduction – Nextra</title>`, 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) |
4 changes: 2 additions & 2 deletions specs/epics/nextra-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ 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 |
| Upstream | [shuding/nextra-docs-template](https://github.com/shuding/nextra-docs-template) (Vercel's "Nextra Docs Starter Kit") |
| 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

Expand Down
2 changes: 1 addition & 1 deletion specs/epics/nextra-docs/epic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions specs/epics/nextra-docs/implementation-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
Milestones land in order; each task is one pull request on an
`orun/ND-n-<slug>` 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`.

**Done when**
- 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
Expand All @@ -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.
Expand Down
Loading