summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2019-12-21 17:13:38 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2019-12-21 17:13:38 +0100
commitd1154202bcd27a7cf3a1bed524ee6b24955df8af (patch)
tree320cd72039e356142df8dcaed4e61cda8b750807 /docs/conf.py
parentc2b9aa0c2fe5e9eee24619d2fe563da01d9ecf87 (diff)
downloadsearxng-d1154202bcd27a7cf3a1bed524ee6b24955df8af.tar.gz
searxng-d1154202bcd27a7cf3a1bed524ee6b24955df8af.zip
doc: add reST templating // incl. generic engine tabe
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py
index b960621d3..e49562a33 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,6 +22,11 @@ master_doc = "index"
source_suffix = '.rst'
numfig = True
+from searx import webapp
+jinja_contexts = {
+ 'webapp': dict(**webapp.__dict__)
+}
+
# usage:: lorem :patch:`f373169` ipsum
extlinks = {}
@@ -52,11 +57,8 @@ extensions = [
"sphinx.ext.intersphinx",
"pallets_sphinx_themes",
"sphinx_issues", # https://github.com/sloria/sphinx-issues/blob/master/README.rst
+ "sphinxcontrib.jinja", # https://github.com/tardyp/sphinx-jinja
'linuxdoc.rstFlatTable', # Implementation of the 'flat-table' reST-directive.
- 'linuxdoc.rstKernelDoc', # Implementation of the 'kernel-doc' reST-directive.
- 'linuxdoc.kernel_include', # Implementation of the 'kernel-include' reST-directive.
- 'linuxdoc.manKernelDoc', # Implementation of the 'kernel-doc-man' builder
- 'linuxdoc.cdomain', # Replacement for the sphinx c-domain.
'linuxdoc.kfigure', # Sphinx extension which implements scalable image handling.
]