2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Update documentation URLs (#4325)

This commit is contained in:
Oliver
2023-02-10 10:39:57 +11:00
committed by GitHub
parent 774a1cff19
commit 06605e70c5
5 changed files with 8 additions and 8 deletions

View File

@ -322,13 +322,13 @@ def inventree_docs_url(*args, **kwargs):
"""Return URL for InvenTree documenation site."""
tag = version.inventreeDocsVersion()
return f"https://inventree.readthedocs.io/en/{tag}"
return f"https://docs.inventree.org/en/{tag}"
@register.simple_tag()
def inventree_credits_url(*args, **kwargs):
"""Return URL for InvenTree credits site."""
return "https://inventree.readthedocs.io/en/latest/credits/"
return "https://docs.inventree.org/en/latest/credits/"
@register.simple_tag()

View File

@ -86,7 +86,7 @@ class TemplateTagTest(InvenTreeTestCase):
def test_docs(self):
"""Test that the documentation URL template tag returns correctly"""
self.assertIn('inventree.readthedocs.io', inventree_extras.inventree_docs_url())
self.assertIn('docs.inventree.org', inventree_extras.inventree_docs_url())
def test_keyvalue(self):
"""Test keyvalue template tag"""