[doc] engine-table: link module documentation if it exists

This commit is contained in:
Martin Fischer 2021-12-21 17:44:05 +01:00
parent 42d70e15ad
commit ca7f1a2da6
2 changed files with 24 additions and 1 deletions

View file

@ -43,7 +43,11 @@ Explanation of the :ref:`general engine configuration` shown in the table
* - `{{name}} <{{mod.about and mod.about.website}}>`_
- ``!{{mod.shortcut}}``
- :origin:`{{mod.__name__}} <searx/engines/{{mod.__name__}}.py>`
- {%- if 'searx.engines.' + mod.__name__ in documented_modules %}
:py:mod:`~searx.engines.{{mod.__name__}}`
{%- else %}
:origin:`{{mod.__name__}} <searx/engines/{{mod.__name__}}.py>`
{%- endif %}
- {{(mod.disabled and "y") or ""}}
{%- if mod.about and mod.about.language %}
({{mod.about.language | upper}})