mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Merge pull request #2112 from SchrodingersGat/docs-link-fix
Fix docs link for release versions (cherry picked from commit c2d33588d048763a77035b6681a2e879fbefc866)
This commit is contained in:
parent
f6bcee06cb
commit
ca0caa3d2b
@ -96,7 +96,7 @@ def inventreeDocsVersion():
|
|||||||
Return the version string matching the latest documentation.
|
Return the version string matching the latest documentation.
|
||||||
|
|
||||||
Development -> "latest"
|
Development -> "latest"
|
||||||
Release -> "major.minor"
|
Release -> "major.minor.sub" e.g. "0.5.2"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ def inventreeDocsVersion():
|
|||||||
else:
|
else:
|
||||||
major, minor, patch = inventreeVersionTuple()
|
major, minor, patch = inventreeVersionTuple()
|
||||||
|
|
||||||
return f"{major}.{minor}"
|
return f"{major}.{minor}.{patch}"
|
||||||
|
|
||||||
|
|
||||||
def isInvenTreeUpToDate():
|
def isInvenTreeUpToDate():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user