Skip to content

docs: scaffold Phase 8 documentation site (mdBook + GitHub Pages) - #20

Merged
Pantani merged 4 commits into
mainfrom
Pantanicd/elegant-hermann-4c45b9
Jun 2, 2026
Merged

Pantani merged 4 commits into
mainfrom
Pantanicd/elegant-hermann-4c45b9

Conversation

@Pantani

@Pantani Pantani commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Scaffolds the Phase 8 docs site under docs/site/ — 41 pages across Learn, Guides, Reference, Concepts, Contributing — built with mdBook + Eclipse theme.
  • Adds .github/workflows/docs.yml to build and deploy to GitHub Pages (https://Pantani.github.io/sunscreen/) on every push to main touching docs/site/**.
  • Adds a dedicated docs-team harness: 5 new agents (docs-architect, docs-tutorial-writer, docs-reference-writer, docs-designer, docs-reviewer) plus the sunscreen-docs-orchestrator skill, so future doc work runs independently of the implementation team.

Why

ROADMAP.md Phase 8 needs a public docs site before v1.0. The brief from @Pantani: "beautiful docs like TMDCP, accessible to people who don't know much about Rust/Solana but also deep enough for professionals."

The dual-audience requirement is solved by splitting tracks rather than mixing tone within pages:

  • Learn (7 pages) assumes zero background, defines every term on first use, includes Rust + Solana primers and a glossary.
  • Guides (6 pages) are task-oriented walkthroughs with declared time budgets.
  • Reference (13 pages) is scannable for pros — tables, every flag, every exit code, every NDJSON event.
  • Concepts (6 pages, with mermaid diagrams) explains the why behind the implementation.
  • Contributing (4 pages) covers roadmap, ADR index, dev setup, docs style.

What's in the box

  • docs/site/book.toml with mdbook-admonish + mdbook-mermaid + mdbook-linkcheck preprocessors.
  • Eclipse palette theme (dark-first, WCAG AA contrast), custom Mermaid theme aligned with the palette.
  • theme/favicon.svg + src/assets/logo.svg (sun-rising-over-horizon glyph + Inter wordmark).
  • Landing with hero, 3 track cards, "why sunscreen", status.
  • 4 mermaid diagrams: architecture (layers), incremental-scaffolding (sequence), build-pipeline (flow + serve sequence), plugin-runtime (lifecycle).
  • GitHub Actions workflow with cached cargo bin, mdbook build on every PR (preview), deploy only on push to main.

What reviewers should check

Reference pages were synthesized from CLAUDE.md + ROADMAP.md, not by reading every src/ file. Before announcing the site publicly, please cross-check:

  1. reference/cli/chain.md — confirm serve flags (--rpc-port, --ws-port, --quiet) against src/cli/chain.rs.
  2. reference/cli/onboarding.md — confirm quickstart kinds (token |nft|dao|blog) against src/cli/onboarding/.
  3. reference/errors.md — cross-check error code table against src/error.rs.
  4. reference/plugin-protocol/index.md — confirm JSON-RPC shapes against src/plugin/.
  5. reference/recipes/crud.md — confirm --fields parser accepts option<T> and vec<T>.

Full P1/P2 list in _workspace/docs-review.md (local, gitignored).

Not in this PR (Phase 8 follow-ups)

  • Shell completions (bash, zsh, fish, pwsh).
  • Homebrew tap.
  • Windows artifact via cargo-dist matrix.
  • Bundled web fonts (Inter, JetBrains Mono).
  • favicon.png companion for older browsers.
  • 404 page polish.

Test plan

  • mdbook build docs/site succeeds locally without warnings (CI will run this on first push).
  • mdbook serve docs/site renders all 41 pages, sidebar navigation is consistent, dark mode looks right.
  • Mermaid diagrams render in all 4 concept pages.
  • Internal links: verified by AST walk before push (40/40 resolve, 0 broken).
  • Enable GitHub Pages (Settings → Pages → Source: GitHub Actions) before merging so the first push to main publishes.
  • Cross-check reference pages against source code (see P1 list).

🤖 Generated with Claude Code

Adds the mdBook-based documentation site (41 pages across Learn / Guides /
Reference / Concepts / Contributing) with the Eclipse theme, GitHub Pages
workflow, and a dedicated 5-agent docs harness so future doc work can be
orchestrated independently of the implementation team.

Why now: Phase 8 of ROADMAP.md requires a public docs site before v1.0.
The dual-audience requirement (newcomers + Solana professionals) is solved
by splitting tracks rather than mixing tone within pages — Learn assumes
zero background and defines every term; Reference is scannable for pros.

Highlights:
- mdBook config with admonish + mermaid + linkcheck preprocessors
- Eclipse palette theme (dark-first, WCAG AA contrast)
- GitHub Actions workflow publishing to gh-pages on push to main
- Architecture / build-pipeline / scaffolding / plugin diagrams (mermaid)
- 5 new agents (docs-architect, docs-tutorial-writer, docs-reference-writer,
  docs-designer, docs-reviewer) + sunscreen-docs-orchestrator skill

Reference pages were synthesized from CLAUDE.md and ROADMAP.md — before
public announcement, they should be cross-checked against src/cli/*.rs,
src/error.rs, and src/plugin/. See _workspace/docs-review.md (gitignored)
for the P1 list.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@Pantani, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 5 minutes and 36 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2f8995fa-0bf8-446a-83fd-a4bca6eddd51

📥 Commits

Reviewing files that changed from the base of the PR and between fbebb80 and 36303ae.

⛔ Files ignored due to path filters (2)
  • docs/site/src/assets/logo.svg is excluded by !**/*.svg
  • docs/site/theme/favicon.svg is excluded by !**/*.svg
📒 Files selected for processing (55)
  • .claude/agents/docs-architect.md
  • .claude/agents/docs-designer.md
  • .claude/agents/docs-reference-writer.md
  • .claude/agents/docs-reviewer.md
  • .claude/agents/docs-tutorial-writer.md
  • .claude/skills/sunscreen-docs-orchestrator/SKILL.md
  • .github/workflows/docs.yml
  • CLAUDE.md
  • docs/site/README.md
  • docs/site/book.toml
  • docs/site/src/SUMMARY.md
  • docs/site/src/concepts/architecture.md
  • docs/site/src/concepts/build-pipeline.md
  • docs/site/src/concepts/framework-pinocchio-vs-anchor.md
  • docs/site/src/concepts/incremental-scaffolding.md
  • docs/site/src/concepts/plugin-runtime.md
  • docs/site/src/concepts/workspace-model.md
  • docs/site/src/contributing/adrs.md
  • docs/site/src/contributing/dev-setup.md
  • docs/site/src/contributing/docs-style.md
  • docs/site/src/contributing/roadmap.md
  • docs/site/src/guides/deploying-to-devnet.md
  • docs/site/src/guides/deploying-to-mainnet.md
  • docs/site/src/guides/dev-loop.md
  • docs/site/src/guides/plugins.md
  • docs/site/src/guides/scaffolding-crud.md
  • docs/site/src/guides/troubleshooting.md
  • docs/site/src/index.md
  • docs/site/src/learn/first-workspace.md
  • docs/site/src/learn/glossary.md
  • docs/site/src/learn/installing.md
  • docs/site/src/learn/rust-primer.md
  • docs/site/src/learn/solana-primer.md
  • docs/site/src/learn/what-is-sunscreen.md
  • docs/site/src/learn/your-first-nft.md
  • docs/site/src/reference/cli/app.md
  • docs/site/src/reference/cli/chain.md
  • docs/site/src/reference/cli/doctor.md
  • docs/site/src/reference/cli/generate.md
  • docs/site/src/reference/cli/index.md
  • docs/site/src/reference/cli/onboarding.md
  • docs/site/src/reference/cli/scaffold.md
  • docs/site/src/reference/config/schema.md
  • docs/site/src/reference/errors.md
  • docs/site/src/reference/events.md
  • docs/site/src/reference/markers.md
  • docs/site/src/reference/plugin-protocol/index.md
  • docs/site/src/reference/recipes/crud.md
  • docs/site/src/reference/recipes/index.md
  • docs/site/src/reference/recipes/metaplex-nft.md
  • docs/site/src/reference/recipes/spl-token.md
  • docs/site/theme/css/admonish.css
  • docs/site/theme/css/general.css
  • docs/site/theme/css/variables.css
  • docs/site/theme/js/mermaid-init.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90c185c43c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/site/src/reference/cli/chain.md Outdated
Comment thread docs/site/src/reference/cli/onboarding.md Outdated
Comment thread docs/site/src/reference/cli/onboarding.md Outdated
Codex review on PR #20 flagged that the reference pages were drifting from
the real CLI definitions in src/cli/. They had been synthesized from
CLAUDE.md / ROADMAP.md rather than read from source, so they advertised
flags that don't exist (chain new --programs/--license/--git, wallet show,
deploy --network mainnet-beta, --validator surfpool, --frontend react/solid)
and would have produced clap parse errors for anyone copy-pasting.

This commit rewrites the affected pages against the actual Args structs:

- chain.md: NewArgs (--framework/--frontend/--path/--dry-run only),
  BuildArgs (--headless/--no-codama), ServeArgs (--runtime/--debounce-ms/
  --no-frontend), DoctorArgs (--fix-markers only). chain deploy noted as
  stub; real deploy is the top-level command.
- onboarding.md: WalletCmd subcommands (new/list/airdrop/balance/
  set-default), positional amount + --cluster for airdrop, balance not
  show. DeployArgs positional target (localnet/devnet/mainnet) +
  --yes-i-understand-cost requirement for mainnet.
- generate.md: actual flags only (--program/--out-dir/--frontend-path/
  --target react|solid|all). Removed invented --rebuild-config/--pretty/
  --out.
- cli/index.md: real global flags (--workdir/--config/--verbose/--json);
  removed --no-color and fabricated SUNSCREEN_* env vars.
- config/schema.md: rewritten against actual Config / ClustersCfg /
  RuntimeCfg shape (project.*, clusters.{localnet,devnet,mainnet},
  runtime.{engine,port,faucet_sol}).
- Guides updated to match: deploy <target> not --network <name>;
  wallet airdrop <amount> --cluster <name>; chain serve --runtime;
  vite/next frontend (not react/solid which is hook-target only).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Pantani
Pantani merged commit bf2dde0 into main Jun 2, 2026
14 checks passed
@Pantani
Pantani deleted the Pantanicd/elegant-hermann-4c45b9 branch June 2, 2026 19:20
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