Skip to content

ND3: nextra-docs becomes an Orun baseline - #4

Merged
ruehowl merged 5 commits into
mainfrom
claude/blissful-ptolemy-c5ajf8
Oct 15, 2026
Merged

ruehowl merged 5 commits into
mainfrom
claude/blissful-ptolemy-c5ajf8

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Task: ND-4 (tasks/ND-4.TaskContract.yaml), milestone ND3 — a baseline.

This turns the Nextra docs port into an Orun baseline, the way portfolio-starter-kit became one at baseline-v2. One command (or the console's Build) now takes a new docs site from nothing to live on stage and prod, in its own repository and under its own name. The fixes from portfolio's first live bootstrap are already in.

What it adds

  • The card and the build. blueprint.yaml and repo-blueprint.yaml.
    • The card requires [github, cloudflare] and an admin API key. Its inputs are reponame, productname, productdomain, githuborg and subdomain. It brokers CLOUDFLARE_API_TOKEN (workers-deploy) and CLOUDFLARE_ACCOUNT_ID (fact), and its programme is nextra-docs-baselining with milestones 01–03. Expected time is 15 minutes.
    • The build has three phases: 01-scaffold (strip work:, defer promotion and dev lanes, rebrand, verify, land), 02-site (deploy, converge, probe both workers.dev URLs) and 03-docs (hooks only: restore, render the record, land). Task prefix is BASE.
  • The product-name seam: apps/web/app/site.ts.
    • SITE_NAME feeds the navbar logo, the default title, the %s – <name> title template and the footer.
    • SOURCE_URL feeds the navbar's GitHub link and the docs repository base, so "Edit this page" and the feedback link open the site's own repository.
    • app/layout.tsx no longer spells a name or a repository itself. The rebrand writes the name with JSON.stringify.
  • The smoke no longer greps My Project. It checks for the docs navbar on / and for the Pagefind index at /_pagefind/pagefind-entry.json.
  • The rebrand engine (tooling/rebrand) has this tree's rules: the source link, the seam, the domain, the subdomain, Worker names, secret refs and the repo slug. It also protects the upstream credit github.com/shuding/nextra-docs-template, because that name starts with this repo's slug and would otherwise be renamed.
  • Bootstrap pieces: the bootstrap helpers (promotion, dev-lanes, retouch, work-tree), hooks/render-deployment-docs.sh (probes / and the search index), ai/context/{operations,deployment}.md, and the site's own README in .baseline/product/README.md.
  • Intent and CI:
    • stack-tectonic is pinned to 0.19.0, with the comment that explains why.
    • ci.yml uses the linked gate instead of ORUN_CI.
    • checks.yml runs on pull requests and workflow_dispatch only.
    • Terraform parameterDefaults are gone, the docs pages are ai/context/*, and infra/ and packages/ are added as discovery roots.
  • Tests and the baseline's own workflows: testing/ (manifest, phases, coverage, rebrand, retouch, bootstrap-defer, leak, placement, e2e), baseline.yml (three jobs) and tag.yml.
  • Docs and specs: BOOTSTRAP.md, docs/phases/, and the README (how to create a site, plus the CI table).
    • Specs: the epic is started with an ND3 milestone, plus the design §8, the plan, risks ND-I..ND-N, an update to ND-G and the as-built status.
    • Task contracts: metadata added to ND-1..3, and ND-4 is new.

How it was verified (locally)

  • Contract tests all pass: manifest, phases, coverage, rebrand, retouch and bootstrap-defer.
  • orun new --status reads the blueprint at v2.58.11, v2.78.4 and v2.79.0. orun validate and orun work check are clean.
  • leak.test.sh passes on v2.58.11 and v2.79.0: 57 files are derived, with nothing from the factory and nothing local or built.
  • placement.test.sh passes on v2.58.11 and v2.79.0. It runs the offline bootstrap with "Sam's Docs & Guides" / acme-inc/acme-docs, then the site's own push-to-main plan for the 02-site merge, then a --resume that changes nothing.
  • e2e.test.sh passes on v2.78.4 and v2.79.0:
    • The scaffold commit and the finished site both pass the Checks steps.
    • The stage lane's install, build-app, verify-build-output and deploy-dry-run all run in a job tree staged the way orun stages it. The test requires that build to run on Turbopack and to write its own Pagefind index covering all 5 pages.
    • Then wrangler dev, the component's smoke command, and every route: title, logo and footer escaped correctly, GitHub and edit links, all 5 pages, a 404, and /_pagefind/.
  • With the pin moved to stack-tectonic 0.20.0, the same e2e fails in build-app with Turbopack's Symlink … points out of the filesystem root. On 0.19.0 it passes.
  • The repo's own steps all pass: pnpm install --frozen-lockfile, wire:fixture, typecheck, lint, test (8 tests) and build.
  • Not verified: a live bootstrap against a workspace (risk ND-I).
  • Found while testing (ND-G): in a staged job tree, Nextra can't read git timestamps, so deployed pages have no "Last updated" line. Accepted as cosmetic.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AuyckrXahuAVgdmxamUUtk


Generated by Claude Code

apps/web/app/site.ts holds SITE_NAME and SOURCE_URL; the layout reads the
logo, the default title, the "%s – <name>" template and the footer from the
first, and the navbar's GitHub link and the docs repository base ("Edit this
page", feedback) from the second. The smoke stops grepping the name: it
requires the docs navbar on / and the Pagefind index at
/_pagefind/pagefind-entry.json. apps/web/README.md describes the app and
credits the upstream template instead of advertising a Vercel deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuyckrXahuAVgdmxamUUtk
stack-tectonic 0.19.0, not 0.20.0: the lane-scoped install links each job's
node_modules out of its staged tree, which Next 16's Turbopack refuses. ci.yml
plans nothing only while intent.yaml names ws_CHANGE_ME (no ORUN_CI variable
a bootstrap cannot set), on the v2.78.4 lane pin; checks.yml runs on pull
requests and by hand only, so a push to main starts ci.yml alone. The work:
block says 01-scaffold strips it; terraform parameterDefaults go; the docs
pages are ai/context/*; infra/ and packages/ exist as discovery roots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuyckrXahuAVgdmxamUUtk
blueprint.yaml (the console card) and repo-blueprint.yaml (three phases:
01-scaffold, 02-site, 03-docs; task prefix BASE), .baseline/ (identity, task
contracts, the site's README), the rebrand engine with this tree's rules
(source link, the SITE_NAME seam, domain, subdomain, Worker names, secret
refs, repo slug; the upstream template's repository protected), the
deferral, retouch and work-tree helpers, the deployment-record renderer
probing / and the search index, and the site's ai/context pages. _pagefind
is in the ignore list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuyckrXahuAVgdmxamUUtk
Contract tests (manifest, phases, coverage, rebrand, retouch,
bootstrap-defer), the leak gate, the offline bootstrap with the acme
fixture, and the end-to-end tier: the scaffold and the finished site under
Checks, the stage lane's steps in a job tree staged as orun stages it (red
on stack-tectonic 0.20.0, green on 0.19.0), the staged build required to
run on Turbopack and to ship its own Pagefind index over every page, then
wrangler dev, the component's smoke and every route. baseline.yml runs
them in three tiers; tag.yml cuts baseline-vN tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuyckrXahuAVgdmxamUUtk
BOOTSTRAP.md, docs/phases/, the README's instantiation section and CI table;
the epic started with an ND3 milestone (ND-4), the design's baseline
section, the plan, the risks (ND-I..ND-N, and ND-G for builds in a staged
tree) and the as-built status; metadata on ND-1..3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuyckrXahuAVgdmxamUUtk
@ruehowl
ruehowl marked this pull request as ready for review October 15, 2026 15:35
@ruehowl
ruehowl merged commit e1edaaf into main Oct 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants