mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-18 04:33:48 +00:00
* Simplify navigation links
* simplify version.py
* Simplify docs links
* Consolidate
(cherry picked from commit aec215ca2f)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
co-authored by
Oliver
parent
04304c8182
commit
eecc5fa186
@@ -133,27 +133,14 @@ def isInvenTreeDevelopmentVersion() -> bool:
|
||||
return inventreeVersion().endswith('dev')
|
||||
|
||||
|
||||
def inventreeDocsVersion() -> str:
|
||||
"""Return the version string matching the latest documentation.
|
||||
|
||||
Development -> "latest"
|
||||
Release -> "major.minor.sub" e.g. "0.5.2"
|
||||
"""
|
||||
if isInvenTreeDevelopmentVersion():
|
||||
return 'latest'
|
||||
|
||||
return INVENTREE_SW_VERSION
|
||||
|
||||
|
||||
def inventreeDocUrl() -> str:
|
||||
"""Return URL for InvenTree documentation site."""
|
||||
tag = inventreeDocsVersion()
|
||||
return f'https://docs.inventree.org/en/{tag}'
|
||||
return 'https://docs.inventree.org'
|
||||
|
||||
|
||||
def inventreeAppUrl() -> str:
|
||||
"""Return URL for InvenTree app site."""
|
||||
return 'https://docs.inventree.org/en/stable/app/'
|
||||
return 'https://docs.inventree.org/en/latest/app/'
|
||||
|
||||
|
||||
def inventreeGithubUrl() -> str:
|
||||
|
||||
Reference in New Issue
Block a user