-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
- Document range matchers
- Find a place for this info: Allow v1,v2 etc. style version names while still supporting full semver in queries hugo#14416
Reference: #3350
Some related notes from bep:
Just a side-note: I have added some comments in https://github.com/bep/hugo-testing-git-versions/blob/main/hugo.toml re
- With the latest cache improvement commits, I think the strategy used in that project could be useful (I will not delete that project, but I may improveit)
- We currently have a glossary term "glob slice", which isn't covering all of what it does anymore ... In the above comments I use "dimension guery", but I'm not sure.
- I have added == and != to the operators to make it complete.
Example:
[module.imports.mounts.sites.matrix]
# This is a Hugo dimension query.
# This can be either a string or a list of strings.
# If prefixed with an operator, the logical operation is AND and it short-circuits on the first match.
# If not prefixed with an operator, the logical operation is OR.
# If not prefixed with an operator or the operator is "! ", it is treated as a Glob expression. See https://github.com/gobwas/glob for the library used.
# The operators are: !,==, !=, <, <=, >, >= followed by a single space.
# "! " operator is reserved for Glob expressions.
# The other operators must be followed by a valid value for the given dimension (for versions Hugo consider semantic equality when finding the value,
# so e.g "< v3.0.0" would match v1 and v2).
versions = 'v1'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels