summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-21 09:39:03 +0100
committerMartin Fischer <martin@push-f.com>2021-12-21 09:58:51 +0100
commite28c6bda35666aa382e6563f4f209d677b9f5ff3 (patch)
tree412ebed948aae1ef9f4390f4c7c4d9fe07e1da6d /docs
parent3c0f01aed7b9e51d8ee7bd0110b1aefa790a71c3 (diff)
downloadsearxng-e28c6bda35666aa382e6563f4f209d677b9f5ff3.tar.gz
searxng-e28c6bda35666aa382e6563f4f209d677b9f5ff3.zip
[doc] introduce about.language and sort engines by it
Diffstat (limited to 'docs')
-rw-r--r--docs/admin/engines/configured_engines.rst3
-rw-r--r--docs/conf.py6
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/admin/engines/configured_engines.rst b/docs/admin/engines/configured_engines.rst
index a36114488..3e4aa7a29 100644
--- a/docs/admin/engines/configured_engines.rst
+++ b/docs/admin/engines/configured_engines.rst
@@ -43,6 +43,9 @@ Explanation of the :ref:`general engine configuration` shown in the table
- ``!{{mod.shortcut}}``
- {{mod.__name__}}
- {{(mod.disabled and "y") or ""}}
+ {%- if mod.about and mod.about.language %}
+ ({{mod.about.language | upper}})
+ {%- endif %}
- {{mod.timeout}}
- {{mod.weight or 1 }}
{% if mod.engine_type == 'online' %}
diff --git a/docs/conf.py b/docs/conf.py
index d843a5a3f..c755b8406 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -50,7 +50,11 @@ jinja_contexts = {
},
}
jinja_filters = {
- 'sort_engines': lambda engines: sorted(engines, key=lambda engine: (engine[1].disabled, engine[0]))
+ 'sort_engines':
+ lambda engines: sorted(
+ engines,
+ key=lambda engine: (engine[1].disabled, engine[1].about.get('language', ''), engine[0])
+ )
}
# usage:: lorem :patch:`f373169` ipsum