forked from Ponysearch/Ponysearch
Merge pull request #726 from return42/fix-637
[fix] Documentation of the builtin plugins
This commit is contained in:
commit
3fbefb4d99
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
import sys, os
|
import sys, os
|
||||||
from pallets_sphinx_themes import ProjectLink
|
from pallets_sphinx_themes import ProjectLink
|
||||||
|
from flask import Flask
|
||||||
|
|
||||||
from searx import get_setting
|
from searx import get_setting
|
||||||
from searx.version import VERSION_STRING, GIT_URL, GIT_BRANCH
|
from searx.version import VERSION_STRING, GIT_URL, GIT_BRANCH
|
||||||
|
@ -40,7 +41,13 @@ exclude_patterns = ['build-templates/*.rst']
|
||||||
import searx.engines
|
import searx.engines
|
||||||
import searx.plugins
|
import searx.plugins
|
||||||
import searx.webutils
|
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.engines.load_engines(searx.settings['engines'])
|
||||||
|
searx.plugins.initialize(application)
|
||||||
|
|
||||||
jinja_contexts = {
|
jinja_contexts = {
|
||||||
'searx': {
|
'searx': {
|
||||||
|
|
Loading…
Reference in a new issue