summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2019-12-19 17:05:50 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2019-12-19 17:05:50 +0100
commitbee19a76f7dc8b86af3ef342acd3f4db72f51543 (patch)
tree54f13a6cd91b39ac8125e8404bc8ab1e435e40e0 /docs/conf.py
parent2b4526916dd8092191baa5b9387e8198e5072b83 (diff)
downloadsearxng-bee19a76f7dc8b86af3ef342acd3f4db72f51543.tar.gz
searxng-bee19a76f7dc8b86af3ef342acd3f4db72f51543.zip
doc: add reST primer (inital / WIP)
preview: https://return42.github.io/searx/dev/reST.html includes: - :class: rst-example // admonitions with (rendered) reST markup example - extlinks to docutils Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 9eba67cf6..33954cbd2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,7 @@ project = u'searx'
copyright = u'2015-2019, Adam Tauber, Noémi Ványi'
author = u'Adam Tauber'
release, version = VERSION_STRING, VERSION_STRING
+highlight_language = 'none'
# General --------------------------------------------------------------
@@ -34,6 +35,12 @@ extlinks['search'] = (SEARX_URL + '/%s', '#')
extlinks['docs'] = (DOCS_URL + '/%s', 'docs: ')
extlinks['pypi'] = ('https://pypi.org/project/%s', 'PyPi: ')
extlinks['man'] = ('https://manpages.debian.org/jump?q=%s', '')
+extlinks['duref'] = (
+ 'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#%s', '')
+extlinks['durole'] = (
+ 'http://docutils.sourceforge.net/docs/ref/rst/roles.html#%s', '')
+extlinks['dudir'] = (
+ 'http://docutils.sourceforge.net/docs/ref/rst/directives.html#%s', '')
extensions = [
'sphinx.ext.extlinks',
@@ -46,9 +53,9 @@ extensions = [
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
- # "flask": ("https://flask.palletsprojects.com/", None),
+ "flask": ("https://flask.palletsprojects.com/", None),
# "werkzeug": ("https://werkzeug.palletsprojects.com/", None),
- # "jinja": ("https://jinja.palletsprojects.com/", None),
+ "jinja": ("https://jinja.palletsprojects.com/", None),
}
issues_github_path = "asciimoo/searx"