diff options
author | Martin Fischer <martin@push-f.com> | 2021-12-21 09:39:03 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-12-21 09:58:51 +0100 |
commit | e28c6bda35666aa382e6563f4f209d677b9f5ff3 (patch) | |
tree | 412ebed948aae1ef9f4390f4c7c4d9fe07e1da6d /docs/conf.py | |
parent | 3c0f01aed7b9e51d8ee7bd0110b1aefa790a71c3 (diff) | |
download | searxng-e28c6bda35666aa382e6563f4f209d677b9f5ff3.tar.gz searxng-e28c6bda35666aa382e6563f4f209d677b9f5ff3.zip |
[doc] introduce about.language and sort engines by it
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |