From 06605e70c51b9e60c5b8afec9ed6427bb809eaed Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 10 Feb 2023 10:39:57 +1100 Subject: [PATCH] Update documentation URLs (#4325) --- InvenTree/config_template.yaml | 6 +++--- InvenTree/part/templatetags/inventree_extras.py | 4 ++-- InvenTree/part/test_part.py | 2 +- InvenTree/plugins/__init__.py | 2 +- InvenTree/templates/email/email.html | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/InvenTree/config_template.yaml b/InvenTree/config_template.yaml index 6a0fbc37f5..481d2935d6 100644 --- a/InvenTree/config_template.yaml +++ b/InvenTree/config_template.yaml @@ -4,7 +4,7 @@ #secret_key_file: '/etc/inventree/secret_key.txt' # Database backend selection - Configure backend database settings -# Documentation: https://inventree.readthedocs.io/en/latest/start/config/ +# Documentation: https://docs.inventree.org/en/latest/start/config/ # Note: Database configuration options can also be specified from environmental variables, # with the prefix INVENTREE_DB_ @@ -214,8 +214,8 @@ remote_login_header: HTTP_REMOTE_USER # Add custom messages to the login page or main interface navbar or exchange the logo # Use environment variable INVENTREE_CUSTOMIZE or INVENTREE_CUSTOM_LOGO # customize: -# login_message: InvenTree demo instance - Click here for login details -# navbar_message:
InvenTree demo mode
+# login_message: InvenTree demo instance - Click here for login details +# navbar_message:
InvenTree demo mode
# logo: logo.png # splash: splash_screen.jpg # hide_admin_link: true diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index 175798ad5b..42ab50a5b2 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -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() diff --git a/InvenTree/part/test_part.py b/InvenTree/part/test_part.py index 644c4fde2a..92178ae728 100644 --- a/InvenTree/part/test_part.py +++ b/InvenTree/part/test_part.py @@ -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""" diff --git a/InvenTree/plugins/__init__.py b/InvenTree/plugins/__init__.py index a77bf4fe18..997ae5addf 100644 --- a/InvenTree/plugins/__init__.py +++ b/InvenTree/plugins/__init__.py @@ -1,5 +1,5 @@ """ Directory for custom plugin development. -Please read the docs for more information https://inventree.readthedocs.io/en/latest/extend/plugins/#local-directory +Please read the docs for more information https://docs.inventree.org/en/latest/extend/plugins/#local-directory """ diff --git a/InvenTree/templates/email/email.html b/InvenTree/templates/email/email.html index 0b3c944da4..710203aed9 100644 --- a/InvenTree/templates/email/email.html +++ b/InvenTree/templates/email/email.html @@ -32,7 +32,7 @@ {% block footer_prefix %} {% endblock %} -

{% inventree_version shortstring=True %} - readthedocs.io

+

{% inventree_version shortstring=True %} - InvenTree Documentation

{% block footer_suffix %} {% endblock %}