summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index a57788a93..67f2c0180 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -37,7 +37,9 @@ extensions = [
'sphinx.ext.imgmath',
'sphinx.ext.todo',
'sphinx.ext.intersphinx',
- 'sphinx.ext.autodoc'
+ 'sphinx.ext.autodoc',
+ 'sphinx_issues', # if this is missing, pip install sphinx-issues
+ 'sphinx_tabs.tabs', # if this is missing, pip install sphinx-tabs
]
try: import rst2pdf
@@ -125,6 +127,16 @@ intersphinx_mapping = {'python': ('https://docs.python.org/3/', None)}
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
+# The output image format. The default is 'png'. It should be either 'png' or 'svg'.
+imgmath_image_format = "svg"
+
+# For sphinx-issues
+
+issues_github_path = "cython/cython"
+
+# For sphinx-tabs
+
+sphinx_tabs_disable_tab_closing = True
# -- Options for HTML output ---------------------------------------------------
@@ -166,6 +178,13 @@ html_favicon = "_static/favicon.ico"
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
+html_css_files = ['css/tabs.css']
+
+
+html_context = {
+ # "dev version" warning banner
+ 'development': 'a' in release or 'b' in release,
+}
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.