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

Build HTML only for subset of whitelisted tags #137

Open
diggidende opened this issue Nov 6, 2024 · 1 comment
Open

Build HTML only for subset of whitelisted tags #137

diggidende opened this issue Nov 6, 2024 · 1 comment

Comments

@diggidende
Copy link

For our project we use semantic versioning, v.., e.g. v2.1.0, v2.1.1, v2.1.2, v2.2.0, v2.2.1

We would like to build our documentation only for the largest minor releases, though.
Example: From the tags v2.1.0, v2.1.1, v2.1.2, v2.2.0, v2.2.1, we only want to build v2.1.2 and v2.2.1.

This whitelist definition inside conf.py includes all patches, though, not only the latest:
smv_tag_whitelist = r'^v\d+.\d+.\d+$'

What is the easiest way to filter non-latest patches while still using most of the built-in functionality?

@Holzhaus
Copy link
Collaborator

Holzhaus commented Nov 6, 2024

You could list them explicitly:

smv_tag_whitelist = r'^v(2\.1\.2|2\.2\.1)$'

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

No branches or pull requests

2 participants