diff options
| author | Alexandre Flament <alex@al-f.net> | 2020-12-21 09:53:41 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2020-12-27 10:00:35 +0100 |
| commit | eb1b5289d5da742473dd412e83abe35406da5fa5 (patch) | |
| tree | 720f0afab6301e43127ab03f957eaa9444e61453 /docs/conf.py | |
| parent | 1ba53e6129f70d31f1af72993ce131de7f21e653 (diff) | |
[mod] documentation: change the jinja context doesn't depend on searx.webapp
Before this commit, in the documentation, the jinja context is 'webapp' and contains
the global variable in the searx.webapp module.
This commit changes this to include only the mandatory variables to build the
documentation.
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index d6fde9bec..0c07761a8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,9 +27,15 @@ numfig = True exclude_patterns = ['build-templates/*.rst'] -from searx import webapp +import searx.search +import searx.engines +import searx.plugins +searx.search.initialize() jinja_contexts = { - 'webapp': dict(**webapp.__dict__), + 'searx': { + 'engines': searx.engines.engines, + 'plugins': searx.plugins.plugins + }, } # usage:: lorem :patch:`f373169` ipsum |