mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
Update documentation URLs (#4325)
This commit is contained in:
parent
774a1cff19
commit
06605e70c5
@ -4,7 +4,7 @@
|
|||||||
#secret_key_file: '/etc/inventree/secret_key.txt'
|
#secret_key_file: '/etc/inventree/secret_key.txt'
|
||||||
|
|
||||||
# Database backend selection - Configure backend database settings
|
# 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,
|
# Note: Database configuration options can also be specified from environmental variables,
|
||||||
# with the prefix INVENTREE_DB_
|
# 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
|
# Add custom messages to the login page or main interface navbar or exchange the logo
|
||||||
# Use environment variable INVENTREE_CUSTOMIZE or INVENTREE_CUSTOM_LOGO
|
# Use environment variable INVENTREE_CUSTOMIZE or INVENTREE_CUSTOM_LOGO
|
||||||
# customize:
|
# customize:
|
||||||
# login_message: InvenTree demo instance - <a href='https://inventree.readthedocs.io/en/latest/demo/'> Click here for login details</a>
|
# login_message: InvenTree demo instance - <a href='https://docs.inventree.org/en/latest/demo/'> Click here for login details</a>
|
||||||
# navbar_message: <h6>InvenTree demo mode <a href='https://inventree.readthedocs.io/en/latest/demo/'><span class='fas fa-info-circle'></span></a></h6>
|
# navbar_message: <h6>InvenTree demo mode <a href='https://docs.inventree.org/en/latest/demo/'><span class='fas fa-info-circle'></span></a></h6>
|
||||||
# logo: logo.png
|
# logo: logo.png
|
||||||
# splash: splash_screen.jpg
|
# splash: splash_screen.jpg
|
||||||
# hide_admin_link: true
|
# hide_admin_link: true
|
||||||
|
@ -322,13 +322,13 @@ def inventree_docs_url(*args, **kwargs):
|
|||||||
"""Return URL for InvenTree documenation site."""
|
"""Return URL for InvenTree documenation site."""
|
||||||
tag = version.inventreeDocsVersion()
|
tag = version.inventreeDocsVersion()
|
||||||
|
|
||||||
return f"https://inventree.readthedocs.io/en/{tag}"
|
return f"https://docs.inventree.org/en/{tag}"
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag()
|
@register.simple_tag()
|
||||||
def inventree_credits_url(*args, **kwargs):
|
def inventree_credits_url(*args, **kwargs):
|
||||||
"""Return URL for InvenTree credits site."""
|
"""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()
|
@register.simple_tag()
|
||||||
|
@ -86,7 +86,7 @@ class TemplateTagTest(InvenTreeTestCase):
|
|||||||
|
|
||||||
def test_docs(self):
|
def test_docs(self):
|
||||||
"""Test that the documentation URL template tag returns correctly"""
|
"""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):
|
def test_keyvalue(self):
|
||||||
"""Test keyvalue template tag"""
|
"""Test keyvalue template tag"""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Directory for custom plugin development.
|
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
|
||||||
"""
|
"""
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
{% block footer_prefix %}
|
{% block footer_prefix %}
|
||||||
<!-- Custom footer information goes here -->
|
<!-- Custom footer information goes here -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<p><em><small>{% inventree_version shortstring=True %} - <a href='https://inventree.readthedocs.io'>readthedocs.io</a></small></em></p>
|
<p><em><small>{% inventree_version shortstring=True %} - <a href='https://docs.inventree.org'>InvenTree Documentation</a></small></em></p>
|
||||||
{% block footer_suffix %}
|
{% block footer_suffix %}
|
||||||
<!-- Custom footer information goes here -->
|
<!-- Custom footer information goes here -->
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user