Skip to content

docs(zkapps): retire generated o1js API reference, delegate to docs.o1labs.org (Phase 1 of #1208)#1209

Open
dkijania wants to merge 1 commit into
mainfrom
dkijania/delegate-o1js-api-reference
Open

docs(zkapps): retire generated o1js API reference, delegate to docs.o1labs.org (Phase 1 of #1208)#1209
dkijania wants to merge 1 commit into
mainfrom
dkijania/delegate-o1js-api-reference

Conversation

@dkijania
Copy link
Copy Markdown
Member

Phase 1 of #1208 — delegate the o1js API reference to o1Labs

Closes the first, lowest-risk step of the zkApp-section migration assessed in #1208.

What & why

docs/zkapps/o1js-reference/** is 217 auto-generated pages — a local mirror of the o1js API. The same reference is fully reproduced and actively maintained at https://docs.o1labs.org/o1js/api-reference (o1js 2.15.0), with an identical typedoc URL structure (classes/*, functions/*, variables/*, type-aliases/*, namespaces/*). Maintaining a second copy here only risks drift, so we delegate it.

Note: o1js.dev is not the target (it serves a stock Docusaurus template); docs.o1labs.org/o1js is the real, maintained site. The existing in-repo MigrateBanner already points there.

Changes

  • 🗑️ Remove docs/zkapps/o1js-reference/** (217 files)
  • 🧭 Remove the o1js Reference category from sidebars.js (via the repo's own node + prettier pipeline)
  • ↪️ vercel.json: redirect /zkapps/o1js-reference and /zkapps/o1js-reference/:path* (and the legacy /zkapps/snarkyjs-reference/:path*) to docs.o1labs.org/o1js/api-reference/*; the bare index lands on …/api-reference/Introduction
  • 🔧 docusaurus.config.js: drop the snarkyjs-reference → o1js-reference client redirect (target no longer exists; vercel.json now covers that path)
  • 🔗 Repoint the 12 in-repo pages that linked into the reference to the o1labs api-reference URLs — each verified live (SmartContract, ZkProgram, Gadgets, Mina.getActions, Provable, etc. all return real pages, no 404s)
  • 🔁 Regenerate static/llms-full.txt / static/llms.txt

Verification

  • ✅ Full docusaurus build passes with onBrokenLinks: 'throw'no broken internal links
  • static/llms-*.txt regenerated, so check-llms-txt CI will pass
  • ✅ Spot-checked target o1labs URLs across all path shapes (classes / functions / variables / type-aliases / namespaces) — all exist

Scope / out of scope

This PR is reference-only. The hand-written guides (o1js/**, writing-a-zkapp/**), the tutorial series, CLI/Lightnet/Ethereum-dev guides, and Mina-network-specific content are intentionally left in place and delegated later as o1labs reaches parity — see the staged plan in #1208.

🤖 Generated with Claude Code

…1labs.org

Phase 1 of the zkApp-section migration tracked in #1208.

The o1js API reference under docs/zkapps/o1js-reference (217 auto-generated
pages) is fully reproduced and actively maintained at
https://docs.o1labs.org/o1js/api-reference, with a 1:1 URL structure
(classes/*, functions/*, variables/*, type-aliases/*, namespaces/*).
Delegate it there rather than keep generating a stale local mirror.

- Remove docs/zkapps/o1js-reference/** (217 files)
- Remove the "o1js Reference" category from sidebars.js
- vercel.json: redirect /zkapps/o1js-reference(/**) and the legacy
  /zkapps/snarkyjs-reference/** to docs.o1labs.org/o1js/api-reference,
  with the index path landing on api-reference/Introduction
- docusaurus.config.js: drop the snarkyjs-reference client redirect whose
  target no longer exists (vercel.json now handles that path)
- Repoint the 12 in-repo pages that linked into the reference to the
  o1labs api-reference URLs (verified live, no 404s)
- Regenerate static/llms-full.txt and static/llms.txt

Verified with a full `docusaurus build` (onBrokenLinks: throw) — no broken
links. Hand-written guides and the tutorial series are intentionally left
in place; they are delegated later as o1labs reaches parity (see #1208).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dkijania dkijania added docs Improvements or additions to documentation o1js zkApps Focused zkApps content labels May 28, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs2 Ready Ready Preview, Comment May 28, 2026 11:59pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation o1js zkApps Focused zkApps content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant