forked from Icycoide/searxng
[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.
This commit is contained in:
parent
1ba53e6129
commit
eb1b5289d5
4 changed files with 21 additions and 9 deletions
10
docs/conf.py
10
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue