mirror of
https://github.com/searxng/searxng.git
synced 2025-07-24 21:59:22 +02:00
[doc] engine-table: sort by Disabled and Name
This commit is contained in:
parent
5ca1ec411e
commit
df0d0ecaab
3 changed files with 5 additions and 2 deletions
|
@ -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}}``
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue