mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
versionadded
, versionchanged
, deprecated
versions should not be v
prefixed
This commit is contained in:
parent
4245c40cef
commit
7bb8989ab8
1 changed files with 5 additions and 1 deletions
|
@ -206,7 +206,11 @@ def _convert_version_names_to_numbers(docstring):
|
|||
try:
|
||||
vs = SaltStackVersion.from_name(vs).string
|
||||
except ValueError:
|
||||
pass
|
||||
if vs.startswith("v"):
|
||||
try:
|
||||
vs = SaltStackVersion.parse(vs[1:]).string
|
||||
except ValueError:
|
||||
pass
|
||||
parsed_versions.append(vs)
|
||||
replace_contents = ".. {}:: {}".format(vtype, ", ".join(parsed_versions))
|
||||
docstring = docstring.replace(match.group(0), replace_contents)
|
||||
|
|
Loading…
Add table
Reference in a new issue