Link to docs in web version

This commit is contained in:
Piero Toffanin 2025-07-10 15:40:31 -04:00
parent b9d6403e02
commit 8c2b1ca15f

View File

@ -67,7 +67,7 @@
<ul id="nav" class="right hide-on-med-and-down top-nav position-relative">
{% set menulinks %}
{% if not hide_api %}
<li><a href="{{ swagger_url }}">{{ _h("API Docs") }}</a></li>
<li><a href="{% if web_version %}https://docs.libretranslate.com{% else %}{{ swagger_url }}{% endif %}">{{ _h("API Docs") }}</a></li>
{% endif %}
{% if get_api_key_link %}
<li><a href="{{ get_api_key_link }}">{{ _h("Get API Key") }}</a></li>