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:
@ -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():
|
||||
|
Reference in New Issue
Block a user