-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Allow disabling default substitutions in the config #12480
Comments
Mmh. That's something I can understand and would be willing to fix. Let's see where it should be done. Some solutions:
Would it make sense? or do you have a better alternative? the first suggestion is just to add |
I think the second variant is more flexible. However, |
Thinking about this more, it would be useful to have some sort of document map, allowing us to define certain substitutions in some documents but not others. The use-case would be to have Another thought: is it possible to auto-inject substitutions based on whether they're being referenced in RST? That should be possible to determine/modify in |
When you say "reference in RST", I assume that you meant if they are used with something like I like the per-file substitution idea but I'm not sure about its interaction with includes for instance. |
Alright, any improvement in the area is good. I won't be able to look into it this week. So I'll let you judge what's the best course of action. |
Is your feature request related to a problem? Please describe.
When setting things like
release
to dynamically-generated versions like the ones produced from Git via tools likesetuptools-scm
, this results in cache invalidation on every single build, effectively rendering it unusable.Describe the solution you'd like
Projects that don't make use of substitutions like
|release|
/|version|
in their RST files, should be able to disable those so they don't influence the cache and let it be reused.Describe alternatives you've considered
Setting
release
andversion
to static values, but that's not desired.Additional context
|release|
RST substitution in docs having incomplete values for development versions pytest-dev/pytest#12538cc @RonnyPfannschmidt
The text was updated successfully, but these errors were encountered: