From 33983809e4e2ede9caf3df12b995c6fa1e5f1d8d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Tue, 21 Dec 2021 12:54:01 +0100 Subject: [PATCH] [doc] say how many engines are supported / enabled --- docs/admin/engines/configured_engines.rst | 2 ++ docs/conf.py | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/admin/engines/configured_engines.rst b/docs/admin/engines/configured_engines.rst index 3e4aa7a29..4898cd5ea 100644 --- a/docs/admin/engines/configured_engines.rst +++ b/docs/admin/engines/configured_engines.rst @@ -14,6 +14,8 @@ Explanation of the :ref:`general engine configuration` shown in the table .. jinja:: searx + SearXNG supports {{engines | length}} search engines (of which {{enabled_engine_count}} are enabled by default). + {% for category, engines in engines.items() | groupby('1.categories.0') %} {{category}} search engines diff --git a/docs/conf.py b/docs/conf.py index c755b8406..a319762e2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,6 +47,7 @@ jinja_contexts = { 'version': { 'node': os.getenv('NODE_MINIMUM_VERSION') }, + 'enabled_engine_count': sum(not x.disabled for x in searx.engines.engines.values()), }, } jinja_filters = {