diff options
| author | Alexandre Flament <alex@al-f.net> | 2020-12-27 18:04:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-27 18:04:53 +0100 |
| commit | 5fb9a5c7c10252b21a23fe66e1625ed9f8691b4a (patch) | |
| tree | a878155a22025da3c7540ed19563ea70a17eb316 /docs/dev | |
| parent | 5840499bfb2a641361e35570e08b3d21abcb73f0 (diff) | |
| parent | 568b9465e9480bf408a00982ce0b8ec7462f830c (diff) | |
Merge pull request #2411 from dalf/update-secret-key-check
Update secret key check
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/reST.rst | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/dev/reST.rst b/docs/dev/reST.rst index 8adf4115e..39cd9f671 100644 --- a/docs/dev/reST.rst +++ b/docs/dev/reST.rst @@ -1289,15 +1289,21 @@ build chapter: :ref:`engines generic`. Below the jinja directive from the :language: reST :start-after: .. _configured engines: -The context for the template is selected in the line ``.. jinja:: webapp``. In -sphinx's build configuration (:origin:`docs/conf.py`) the ``webapp`` context -points to the name space of the python module: ``webapp``. +The context for the template is selected in the line ``.. jinja:: searx``. In +sphinx's build configuration (:origin:`docs/conf.py`) the ``searx`` context +contains the ``engines`` and ``plugins``. .. code:: py - 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 + }, } |