diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-07 17:03:49 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-01-07 19:59:42 +0100 |
commit | 613fb15599055b59b59fb60722c3470145ec8bba (patch) | |
tree | ae47ff16170a9361a849b3aa1199a1adf75847ee /docs/conf.py | |
parent | 836aa437a59702072986d9f94cd985a4d2e848b4 (diff) | |
download | searxng-613fb15599055b59b59fb60722c3470145ec8bba.tar.gz searxng-613fb15599055b59b59fb60722c3470145ec8bba.zip |
[fix] Documentation of the builtin plugins
Closes: https://github.com/searxng/searxng/issues/637
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py index 62b541f2f..ad7152a2b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,6 +3,7 @@ import sys, os from pallets_sphinx_themes import ProjectLink +from flask import Flask from searx import get_setting from searx.version import VERSION_STRING, GIT_URL, GIT_BRANCH @@ -40,7 +41,13 @@ exclude_patterns = ['build-templates/*.rst'] import searx.engines import searx.plugins import searx.webutils + +# bypass a creepy check of the secret_key in searx.webapp +searx.settings['server']['secret_key'] = '' +from searx.webapp import application + searx.engines.load_engines(searx.settings['engines']) +searx.plugins.initialize(application) jinja_contexts = { 'searx': { |