[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
: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
.. flat-table:: Engines configured at built time (defaults)
:header-rows: 1
.. flat-table::
:header-rows: 2
:stub-columns: 2
* - :cspan:`6` Engines configured by default (in :ref:`settings.yml <engine settings>`)
-
- :cspan:`3` :ref:`Supported features <engine file>`
* - Name
- Shortcut
- Engine
- Disabled
- Timeout
- Weight
- Display errors
- Categories
- Paging
- Language
- Safe search
- Disabled
- Time range
- Engine type
- Weight
- Display errors
{% for name, mod in engines.items() %}
* - `{{name}} <{{mod.about and mod.about.website}}>`_
- !{{mod.shortcut}}
- {{mod.__name__}}
- {{(mod.disabled and "y") or ""}}
- {{mod.timeout}}
- {{mod.weight or 1 }}
- {{(mod.display_error_messages and "y") or ""}}
- {{", ".join(mod.categories)}}
- {{(mod.paging and "y") or ""}}
- {{(mod.language_support and "y") or ""}}
- {{(mod.safesearch and "y") or ""}}
- {{(mod.disabled and "y") or ""}}
- {{(mod.time_range_support and "y") or ""}}
- {{mod.engine_type or ""}}
- {{mod.weight or 1 }}
- {{(mod.display_error_messages and "y") or ""}}
{% endfor %}