Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the Snippet Index #8383

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Introduce the Snippet Index #8383

merged 1 commit into from
Dec 10, 2024

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Dec 10, 2024

@teh-cmc teh-cmc added 📖 documentation Improvements or additions to documentation examples Issues relating to the Rerun examples include in changelog labels Dec 10, 2024
Copy link

github-actions bot commented Dec 10, 2024

Latest documentation preview deployed successfully.

Result Commit Link
8aaa8a8 https://landing-b1vuvk9kf-rerun.vercel.app/docs

Note: This comment is updated whenever you push a commit.


// ---

/// Returns `true` if the given name has not been released yet.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I find this approach Good Enough ™️, I'm all ears if someone has something nicer.

Copy link

github-actions bot commented Dec 10, 2024

Web viewer failed to build.

Result Commit Link Manifest
https://rerun.io/viewer/pr/8383 +nightly +main

Note: This comment is updated whenever you push a commit.

Copy link
Contributor

@zehiko zehiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense and looks good to me

Base automatically changed from cmc/snippets_index_0_refactor to main December 10, 2024 16:32
@teh-cmc teh-cmc force-pushed the cmc/snippets_index_1_autogen branch from 3493bfa to 8aaa8a8 Compare December 10, 2024 16:34
@teh-cmc teh-cmc removed the do-not-merge Do not merge this PR label Dec 10, 2024
@teh-cmc teh-cmc merged commit 6b40cd5 into main Dec 10, 2024
27 of 35 checks passed
@teh-cmc teh-cmc deleted the cmc/snippets_index_1_autogen branch December 10, 2024 16:35
teh-cmc added a commit that referenced this pull request Dec 10, 2024
Adds the ability to manually opt-out of the index for specific
snippets/archetypes/components.

E.g.:
```toml
# These snippets will be excluded from the snippet index, unconditionally.
[snippets_ref.snippets.opt_out]
"archetypes/manual_indicator" = []

# These archetypes will ignore the associated snippets in the snippet index.
[snippets_ref.archetypes.opt_out]
"DataframeQuery" = [
  "reference/dataframe_save_blueprint"
]

# These components will ignore the associated snippets in the snippet index.
[snippets_ref.components.opt_out]
"ShowLabels" = [
  "tutorials/data_out",
]
```

Config will have to be filled over time!


[Rendered](https://github.com/rerun-io/rerun/blob/cmc/snippets_index_2_opt_outs/docs/snippets/INDEX.md)

* Part of #1123
* Part of #5662
* DNM: requires #8383
@teh-cmc teh-cmc changed the title Snippet index: implement codegen foundations Introduce the _Snippet Index_ Dec 16, 2024
@teh-cmc teh-cmc changed the title Introduce the _Snippet Index_ Introduce the *Snippet Index* Dec 16, 2024
@teh-cmc teh-cmc changed the title Introduce the *Snippet Index* Introduce the Snippet Index Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation examples Issues relating to the Rerun examples include in changelog
Projects
None yet
2 participants