# Contributing
## Workflow
- Open an issue or discussion first for non-trivial changes.
- Keep pull requests focused and small enough to review.
- Update docs and examples when public behavior changes.
- Add or update tests when fixing bugs or changing APIs.
## Setup
```bash
cargo fmt --all
cargo clippy --all-targets --all-features
cargo test --all-features
cargo test --doc
```
Run the relevant examples or targeted tests when you touch rendering, export, or interactive behavior.
For release-facing docs and media refreshes, use `make release-docs` on the
dedicated release docs branch. See [docs/BUILD_OUTPUTS.md](docs/BUILD_OUTPUTS.md)
for the current artifact layout and regeneration workflow.
## Pull Requests
- Describe the user-visible change clearly.
- Call out any feature flags required to exercise the change.
- Include screenshots or generated output when a visual behavior changes.
## Documentation
- Keep [README.md](README.md) and the files under [docs](docs) consistent with the current API.
- Prefer examples that compile against the current public surface.
- Keep published assets in their canonical committed paths.
- Use `generated/` only for local preview output and CI preview artifacts; do
not add published docs dependencies on that tree.