It would be nice to use the code-example directive for this kind of snippet, so that all languages can be covered:
It would also be nice for those snippet to be tested, but that requires stub code (in the case above, create a stub frames object). Ideally, we should be able to add stub code in the code example file, and mark it as hidden for the purpose of the code-example directive.
(shadow of https://github.com/rerun-io/landing/issues/515)
It would be nice to use the
code-exampledirective for this kind of snippet, so that all languages can be covered:It would also be nice for those snippet to be tested, but that requires stub code (in the case above, create a stub
framesobject). Ideally, we should be able to add stub code in the code example file, and mark it as hidden for the purpose of thecode-exampledirective.(shadow of https://github.com/rerun-io/landing/issues/515)