Skip to content

feat(web): add Next docs version snapshot#1613

Merged
christso merged 6 commits into
mainfrom
versioned-docs
Jul 3, 2026
Merged

feat(web): add Next docs version snapshot#1613
christso merged 6 commits into
mainfrom
versioned-docs

Conversation

@christso

@christso christso commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a frozen next docs archive under /docs/next/, pinned to the v5.0.0-next.1 tag, alongside the existing Canary (live) and v4.42.4 (stable) tiers.
  • Generalizes VersionSelect.astro and VersionedSidebar.astro from a single hardcoded archived version to a list, so future stable releases only need a new snapshot + array entry.
  • Extends scripts/snapshot-docs-version.mjs to accept next as a version slug alongside vX.Y.Z tags, and adds a docs:snapshot:next script pinned to v5.0.0-next.1.

Docs version dropdown now shows: Canary → Next → v4.42.4.

Test plan

  • bun run build in apps/web succeeds and emits /docs/, /docs/next/, and /docs/v4.42.4/ pages
  • bun run preview + curl verified the version dropdown shows the correct selected option on each tier
  • Verified the sidebar on /docs/next/... only links within /docs/next/ (no Canary link leakage)
  • Verified the frozen-docs banner renders on /docs/next/
  • Spot-checked a nested /docs/next/evaluation/eval-cases/ route resolves (200)

🤖 Generated with Claude Code

Adds a frozen `next` docs archive under /docs/next/ pinned to the
v5.0.0-next.1 tag, extending the version-select/sidebar components
and snapshot script (previously hardcoded to a single v4.42.4
archive) to support multiple archived versions. Dropdown now shows
Canary / Next / v4.42.4.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 52e001a
Status: ✅  Deploy successful!
Preview URL: https://dbe75d22.agentv.pages.dev
Branch Preview URL: https://versioned-docs.agentv.pages.dev

View logs

christso and others added 5 commits July 3, 2026 16:08
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Mirrors the beads docs versioning structure: the bare /docs/ URL now
redirects to the latest stable release (v4.42.4) instead of serving
a separate "Canary" live tree, and the actual editable doc source
moves to /docs/next/ (the live, unreleased tree). Canary is dropped
as a concept since it's redundant with Next once Next is the live
tree rather than a frozen snapshot.

- Move live doc source from content/docs/docs/* into docs/next/*
  and fix relative asset/example links for the extra nesting level.
- astro.config.mjs: sidebar autogenerate directories now point at
  docs/next/*; redirects generated per-route from the existing
  docs-v4.42.4-routes.json manifest so every bare /docs/* subpage
  redirects to its v4.42.4 equivalent (a wildcard redirect isn't
  supported for static output without enumerable paths).
- VersionSelect.astro: drop the Canary option, dropdown is now
  Next / v4.42.4.
- VersionedSidebar.astro: only v4.42.4 needs href remapping now,
  since the base sidebar (built from docs/next/*) already matches
  the live tree's routes.
- snapshot-docs-version.mjs: snapshots are now cut from the live
  docs/next/ subtree instead of the docs/ root, and no longer
  support "next" as a version slug since next is no longer a
  frozen snapshot. Removes the now-dead asset-path depth rewrite
  (source and destination are the same depth once cutting from
  next/).
- Remove the frozen next/ snapshot and docs-next-routes.json from
  the prior commit, and the docs:snapshot:next script.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The Result Artifact Contract ADR link was broken (lychee link check
failure in CI) since result-artifacts.mdx moved to docs/next/ along
with the rest of the live doc tree. Also updates other non-historical
references (skill READMEs, SDK README, example README, a solutions
doc) that pointed at the old pre-move path; docs/plans/* and
docs/brainstorms/* are left as-is since those are point-in-time
historical artifacts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
# Conflicts:
#	apps/web/src/content/docs/docs/next/guides/human-review.mdx
#	apps/web/src/content/docs/docs/next/guides/workspace-pool.mdx
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@christso christso merged commit 26a439b into main Jul 3, 2026
8 checks passed
@christso christso deleted the versioned-docs branch July 3, 2026 07:01
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.

1 participant