summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-12-20 23:57:06 +0100
committerMartin Fischer <martin@push-f.com>2021-12-20 23:57:06 +0100
commitdf0d0ecaabe1b9e3c1515c89da6f750bbf5d992b (patch)
tree097fc94e541fc551130ed0d22d19aad8b981bcce /docs
parent5ca1ec411eeb965316751c4fa125f3de30fbef2c (diff)
downloadsearxng-df0d0ecaabe1b9e3c1515c89da6f750bbf5d992b.tar.gz
searxng-df0d0ecaabe1b9e3c1515c89da6f750bbf5d992b.zip
[doc] engine-table: sort by Disabled and Name
Diffstat (limited to 'docs')
-rw-r--r--docs/admin/engines/configured_engines.rst2
-rw-r--r--docs/conf.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/admin/engines/configured_engines.rst b/docs/admin/engines/configured_engines.rst
index 21bc0e92b..a36114488 100644
--- a/docs/admin/engines/configured_engines.rst
+++ b/docs/admin/engines/configured_engines.rst
@@ -37,7 +37,7 @@ Explanation of the :ref:`general engine configuration` shown in the table
- Safe search
- Time range
- {% for name, mod in engines %}
+ {% for name, mod in engines | sort_engines %}
* - `{{name}} <{{mod.about and mod.about.website}}>`_
- ``!{{mod.shortcut}}``
diff --git a/docs/conf.py b/docs/conf.py
index 56f3e1d9f..d843a5a3f 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,6 +49,9 @@ jinja_contexts = {
},
},
}
+jinja_filters = {
+ 'sort_engines': lambda engines: sorted(engines, key=lambda engine: (engine[1].disabled, engine[0]))
+}
# usage:: lorem :patch:`f373169` ipsum
extlinks = {}