Commit 5a75d1a
committed
docs: Add comprehensive API reference documentation (Issue #16)
Created 3 complete API reference pages:
1. CLI Commands (api/cli-commands.md)
- All 4 commands: generate, validate, init, check
- Usage examples, options, exit codes
- Common errors and troubleshooting
- CI/CD integration examples
2. Type System (api/types.md)
- Complete type mapping table (Rust ↔ TypeScript)
- Primitives: u8-u128, i8-i128, bool, String
- Solana types: PublicKey, Signature
- Complex types: Vec, Option
- Enums: Unit, Tuple, Struct variants
- Best practices and constraints
3. Attributes (api/attributes.md)
- #[solana] - Solana-specific types
- #[account] - Anchor account macro
- Context-aware generation
- Valid/invalid combinations
- Troubleshooting common errors
Updated sidebar navigation to include API Reference section.
Progress: 75% complete on Issue #161 parent 8557e31 commit 5a75d1a
File tree
4 files changed
+1501
-8
lines changed- src/content/docs/api
4 files changed
+1501
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments