2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 19:45:46 +00:00

Documentation URL is now hard-coded

- Also checked as part of CI step
This commit is contained in:
Oliver
2021-10-11 10:19:59 +11:00
parent 8dddb200c7
commit cfbcb80285
2 changed files with 48 additions and 7 deletions

View File

@ -8,8 +8,15 @@ import re
import common.models
# InvenTree software version
INVENTREE_SW_VERSION = "0.6.0 dev"
# InvenTree documentation version
# For 'dev' branch this must read "latest"
# For 'stable' branch this must match INVENTREE_SW_VERSION
INVENTREE_DOCS_VERSION = "latest"
# InvenTree API version
INVENTREE_API_VERSION = 15
"""
@ -112,12 +119,7 @@ def inventreeDocsVersion():
"""
if isInvenTreeDevelopmentVersion():
return "latest"
else:
major, minor, patch = inventreeVersionTuple()
return f"{major}.{minor}.{patch}"
return INVENTREE_DOCS_VERSION
def isInvenTreeUpToDate():