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

Version dependent tags #81

Open
story645 opened this issue Nov 6, 2023 · 2 comments
Open

Version dependent tags #81

story645 opened this issue Nov 6, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@story645
Copy link
Collaborator

story645 commented Nov 6, 2023

Add a configuration setting that only shows x tag on specific build. The two use cases I'm thinking of:

  • dev/internal tags -> tags used for flagging examples that may need fixing where it'd be useful to see the tag on dev to easily find it, but we may not want to expose folks to on main b/c there it'd be a distraction
  • versioning tags: it'd be nice to tag examples that are showing features new to a version w/ a version tag, and it's the type of thing where we may want to phase out showing after N versions or do something like if tag version == build version-> tag==what's new or make it a different color to otherwise highlight highlight examples of new features in gallery matplotlib/matplotlib#15920
@story645 story645 added the enhancement New feature or request label Nov 6, 2023
@story645
Copy link
Collaborator Author

Also just realized this can be achieved trivially with an ifconfig so I think gonna try that for the internal tags 😅

@espwangning
Copy link

I tried this in my project, and it works fine for displaying tags for each individual file, but the internal tags will still show in the tag overview page.

I guess the configuration setting is still needed when reading tags in each file to prepare the overview page and tag entry mapping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants