Skip to content

docs: improve API documentation for library consumers#5

Merged
shinaoka merged 2 commits intomainfrom
docs/improve-api-documentation
Mar 25, 2026
Merged

docs: improve API documentation for library consumers#5
shinaoka merged 2 commits intomainfrom
docs/improve-api-documentation

Conversation

@shinaoka
Copy link
Copy Markdown
Member

Summary

  • Enable compile-testing on Differentiable doc examples (previously /// ```ignore)
  • Document Send + Sync requirement on ReverseRule and ForwardRule traits
  • Add Wirtinger/CR-calculus convention section for complex scalar tangents
  • Document rrule first-argument convention table (result vs input x)
  • Clarify result vs x parameter on individual rrule function doc comments
  • Add Getting Started section to README with dependency snippets and usage examples

Motivated by a simulated downstream-user feature test that found these documentation gaps.

Test plan

  • cargo fmt --all — no changes
  • cargo clippy --workspace — clean
  • cargo test --doc --release --workspace — 38 passed (previously ignored examples now compile-tested)
  • cargo nextest run --release --workspace — 69 passed

🤖 Generated with Claude Code

@shinaoka shinaoka enabled auto-merge (squash) March 25, 2026 02:32
shinaoka and others added 2 commits March 25, 2026 11:38
- Enable compile-testing on Differentiable doc examples (was `ignore`)
- Document Send+Sync requirement on ReverseRule and ForwardRule traits
- Add Wirtinger/CR-calculus convention section for complex scalars
- Document rrule first-argument convention (result vs input x)
- Clarify result vs x parameter on individual rrule functions
- Add Getting Started section to README with dependency and usage examples

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@shinaoka shinaoka force-pushed the docs/improve-api-documentation branch from 042f352 to 7e0323d Compare March 25, 2026 02:39
@shinaoka shinaoka merged commit 43ea7ff into main Mar 25, 2026
5 checks passed
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