-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate unit examples into codegen stack (#2590)
**Easier to review commit by commit** This PR makes it so that our nice examples in docs/code-examples automagically end up in docstrings for both Python & Rust. Fixes #2509 UPDATE: This also fixes a pretty serious bug in the versioning code... I'm not entirely how anything worked at all actually (??). TL;DR: given this: https://github.com/rerun-io/rerun/blob/0fc2a9fad2616bb3580176df37c488fc76a9a2ca/crates/re_types/definitions/rerun/archetypes/points2d.fbs#L16-L33 You get this ![image](https://github.com/rerun-io/rerun/assets/2910679/e36af2b6-5ae7-4790-9048-8816c140b8d0) and this ![image](https://github.com/rerun-io/rerun/assets/2910679/feaf0b17-bc38-47c9-8f4f-0b476b54315b) ### What ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2590) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2590) - [Docs preview](https://rerun.io/preview/pr%3Acmc%2Fhope_docstring_examples/docs) - [Examples preview](https://rerun.io/preview/pr%3Acmc%2Fhope_docstring_examples/examples)
- Loading branch information
Showing
14 changed files
with
348 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This is a sha256 hash for all direct and indirect dependencies of this crate's build script. | ||
# It can be safely removed at anytime to force the build script to run again. | ||
# Check out build.rs to see how it's computed. | ||
5cac23400a6084eaaa53fba54885d12daefa92fdbdb057c8221ec343dcdd9586 | ||
d828fdb05c35a01b92dd30b7ce40987b87c5dfe8d1bb8f729004ae88b62c830c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.