summaryrefslogtreecommitdiff
path: root/docs/conf.py
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/conf.py
parent5ca1ec411eeb965316751c4fa125f3de30fbef2c (diff)
downloadsearxng-df0d0ecaabe1b9e3c1515c89da6f750bbf5d992b.tar.gz
searxng-df0d0ecaabe1b9e3c1515c89da6f750bbf5d992b.zip
[doc] engine-table: sort by Disabled and Name
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py3
1 files changed, 3 insertions, 0 deletions
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 = {}