Skip to content

docs: restructure readmes and code comments - #76

Merged
arihantbansal merged 2 commits into
mainfrom
ab/docs-redesign
Jul 22, 2026
Merged

arihantbansal merged 2 commits into
mainfrom
ab/docs-redesign

Conversation

@arihantbansal

Copy link
Copy Markdown
Contributor

Summary

Replaces the verbose, repetitive v0.9.6-era READMEs with a layered structure: the root README owns everything shared (workflow, lifecycle, trust model, troubleshooting), per-example READMEs follow one fixed ~50-line skeleton, and deep material moves into module docs next to the code. Supersedes #70 and #66, whose content was reapplied and re-verified against current source.

Changes

  • Root README: example index table + learning path, single run-workflow section, troubleshooting with named errors, scope disclaimer
  • Per-example READMEs: fixed skeleton (How it works / Concepts demonstrated / Run / Key files / Pitfalls / Limitations / Next); no fenced Rust/TS — inline identifiers only, all grep-verified against source
  • Rust: //! module headers on circuits and programs (byte layouts documented where queue calls read accounts by offset); rustdoc trimmed of # Arguments/# Returns boilerplate and narration comments; inline comments only at Arcium footguns (ArgBuilder order, byte offsets, sign-PDA bump)
  • Tests: one JSDoc flow header per file; narration comments removed, crypto-step comments kept
  • Accuracy fixes: dead Argument::Account API removed from voting README; wrong move-encoding comment in the RPS-vs-house test corrected (0/1/2, not 1/2/3); false PR docs: rewrite example readmes and add module docs #70 claim about in-circuit slot enforcement replaced with an honest limitation

Verified: cargo check and cargo fmt --check pass on all 8 examples; tsc --noEmit clean on edited tests; every README identifier grep-confirmed in its example's source.

@arihantbansal
arihantbansal merged commit fe15384 into main Jul 22, 2026
10 checks passed
@arihantbansal
arihantbansal deleted the ab/docs-redesign branch July 22, 2026 10:05
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