[doc] engine-table: group columns logically

This commit is contained in:
Martin Fischer 2021-12-20 10:42:24 +01:00
parent 966296b866
commit 625ebf9cef

View file

@ -12,62 +12,45 @@ Configured Engines
Explanation of the :ref:`general engine configuration` shown in the table Explanation of the :ref:`general engine configuration` shown in the table
:ref:`configured engines`. :ref:`configured engines`.
.. table:: The legend for the following table
:width: 100%
========================= =================================
:ref:`engine settings` :ref:`engine file`
------------------------- ---------------------------------
Name Categories
------------------------- ---------------------------------
Engine Paging support
------------------------- ---------------------------------
Shortcut Language support
Timeout Time range support
Disabled Engine type
------------------------- ---------------------------------
Safe search
------------------------- ---------------------------------
Weigth
------------------------- ---------------------------------
Show errors
========================= =================================
.. jinja:: searx .. jinja:: searx
.. flat-table:: Engines configured at built time (defaults) .. flat-table::
:header-rows: 1 :header-rows: 2
:stub-columns: 2 :stub-columns: 2
* - :cspan:`6` Engines configured by default (in :ref:`settings.yml <engine settings>`)
-
- :cspan:`3` :ref:`Supported features <engine file>`
* - Name * - Name
- Shortcut - Shortcut
- Engine - Engine
- Disabled
- Timeout - Timeout
- Weight
- Display errors
- Categories - Categories
- Paging - Paging
- Language - Language
- Safe search - Safe search
- Disabled
- Time range - Time range
- Engine type - Engine type
- Weight
- Display errors
{% for name, mod in engines.items() %} {% for name, mod in engines.items() %}
* - `{{name}} <{{mod.about and mod.about.website}}>`_ * - `{{name}} <{{mod.about and mod.about.website}}>`_
- !{{mod.shortcut}} - !{{mod.shortcut}}
- {{mod.__name__}} - {{mod.__name__}}
- {{(mod.disabled and "y") or ""}}
- {{mod.timeout}} - {{mod.timeout}}
- {{mod.weight or 1 }}
- {{(mod.display_error_messages and "y") or ""}}
- {{", ".join(mod.categories)}} - {{", ".join(mod.categories)}}
- {{(mod.paging and "y") or ""}} - {{(mod.paging and "y") or ""}}
- {{(mod.language_support and "y") or ""}} - {{(mod.language_support and "y") or ""}}
- {{(mod.safesearch and "y") or ""}} - {{(mod.safesearch and "y") or ""}}
- {{(mod.disabled and "y") or ""}}
- {{(mod.time_range_support and "y") or ""}} - {{(mod.time_range_support and "y") or ""}}
- {{mod.engine_type or ""}} - {{mod.engine_type or ""}}
- {{mod.weight or 1 }}
- {{(mod.display_error_messages and "y") or ""}}
{% endfor %} {% endfor %}