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