mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-27 21:26:43 +00:00
Fix assets directory
This commit is contained in:
parent
645942827e
commit
6552b90959
@ -1,5 +1,5 @@
|
|||||||
{% if 'http' in url %}
|
{% if 'http' in url %}
|
||||||
{% set doc_url = url %}
|
{% set img_url = url %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set img_url = config.assets_dir + '/images/' + url %}
|
{% set img_url = config.assets_dir + '/images/' + url %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -8,7 +8,7 @@
|
|||||||
{% if id %}
|
{% if id %}
|
||||||
<!-- The link that, when clicked, will display the image in full screen -->
|
<!-- The link that, when clicked, will display the image in full screen -->
|
||||||
<a href="#{{ id }}">
|
<a href="#{{ id }}">
|
||||||
{% elif doc_url %}
|
{% elif img_url %}
|
||||||
<a href="{{ img_url }}">
|
<a href="{{ img_url }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img class='img-inline' src='{{ img_url }}' alt='{{ description }}' title='{{ description }}'
|
<img class='img-inline' src='{{ img_url }}' alt='{{ description }}' title='{{ description }}'
|
||||||
@ -17,7 +17,7 @@
|
|||||||
{% if maxheight %} max-height: {{ maxheight }};{% endif %}
|
{% if maxheight %} max-height: {{ maxheight }};{% endif %}
|
||||||
'{% endif %}
|
'{% endif %}
|
||||||
>
|
>
|
||||||
{% if id or doc_url %}
|
{% if id or img_url %}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ def on_config(config, *args, **kwargs):
|
|||||||
rtd_language = os.environ['READTHEDOCS_LANGUAGE']
|
rtd_language = os.environ['READTHEDOCS_LANGUAGE']
|
||||||
|
|
||||||
site_url = f"https://inventree.readthedocs.io/{rtd_language}/{rtd_version}"
|
site_url = f"https://inventree.readthedocs.io/{rtd_language}/{rtd_version}"
|
||||||
assets_dir = f"/{rtd_language}/{rtd_version}"
|
assets_dir = f"/{rtd_language}/{rtd_version}/assets"
|
||||||
|
|
||||||
print("Building within READTHEDOCS environment!")
|
print("Building within READTHEDOCS environment!")
|
||||||
print(f" - Version: {rtd_version}")
|
print(f" - Version: {rtd_version}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user