[UI] Docs links (#12342) (#12346)

* 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:
github-actions[bot]
2026-07-10 06:37:02 +10:00
committed by GitHub
co-authored by Oliver
parent 04304c8182
commit eecc5fa186
5 changed files with 24 additions and 35 deletions
+2 -15
View File
@@ -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: