Skip to content

Add V2 SDK getting started pages, remove V1 nav sections#18

Closed
vraspar wants to merge 1 commit into
mainfrom
vraspar/docs-getting-started
Closed

Add V2 SDK getting started pages, remove V1 nav sections#18
vraspar wants to merge 1 commit into
mainfrom
vraspar/docs-getting-started

Conversation

@vraspar
Copy link
Copy Markdown
Contributor

@vraspar vraspar commented Mar 21, 2026

Summary

  • Rewrites sdk/overview.mdx and sdk/installation.mdx for V2 API (createX402r, role presets, action groups)
  • Adds sdk/create-client.mdx (config reference, role presets, extend, payment store)
  • Adds sdk/typescript.mdx (type imports, role narrowing tables, error types)
  • Removes 5 V1 nav groups from SDK tab (Merchant, Client, Arbiter, Facilitator, Experimental) — files stay on disk for later cleanup PR
  • Fixes stale link on helpers card in overview

Test plan

  • npx mintlify broken-links passes
  • npx mint dev renders all 4 pages correctly
  • SDK tab shows only Getting Started group
  • No V1 references (new X402rClient, @x402r/client, getNetworkConfig) in new pages

🤖 Generated with Claude Code

Rewrites overview and installation pages for V2 API (createX402r, role
presets, action groups). Adds create-client and typescript pages. Removes
Merchant, Client, Arbiter, Facilitator, and Experimental nav groups from
SDK tab — files stay on disk for later cleanup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vraspar vraspar force-pushed the vraspar/docs-getting-started branch from b9e1d03 to 7186ab3 Compare March 24, 2026 09:29
@vraspar
Copy link
Copy Markdown
Contributor Author

vraspar commented Mar 28, 2026

Closing in favor of a rewrite with improved writing quality. See DOCS_WRITING_GUIDE.md for the new approach.

@vraspar vraspar closed this Mar 28, 2026
@vraspar vraspar mentioned this pull request Mar 29, 2026
6 tasks
A1igator pushed a commit that referenced this pull request Mar 31, 2026
## Summary

Replaces PR #18 with a full rewrite of the 4 Getting Started pages
following the new
[DOCS_WRITING_GUIDE](https://github.com/BackTrackCo/x402r-notes/blob/main/plans/DOCS_WRITING_GUIDE.md)
anti-slop rules.

**What changed:**
- `sdk/overview.mdx` — landing page feel, leads with x402 vs x402r
contrast, real chain tables
- `sdk/installation.mdx` — shortest page on the site, jumps straight to
install command
- `sdk/create-client.mdx` — decision tree between `createX402r()` and
role presets, config reference
- `sdk/typescript.mdx` — reference sheet with role narrowing tables
verified against `types.ts`
- `docs.json` — adds `create-client` and `typescript` to Getting Started
nav, removes `concepts` and `limitations`

**Writing approach:**
- Every opening answers "why would I read this?" not "what is this page
about?"
- Code first, prose annotates only non-obvious behavior
- Real addresses from `config/index.ts`, not placeholders
- Structural variety: each page has a different feel (landing page /
quick-start / decision tree / reference sheet)
- All signatures verified against `x402r-sdk/packages/sdk/src/types.ts`

## Test plan

- [x] `npx mintlify broken-links` passes
- [x] Anti-slop grep (no banned words: powerful, seamless, robust,
allows you to, etc.)
- [x] All function signatures match `types.ts`
- [x] Role narrowing tables match Pick types (lines 235-379)
- [x] `getChainConfig` confirmed re-exported from `@x402r/sdk`
- [ ] Preview deploy renders correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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