Enable strict/explicit code highlighting

This commit is contained in:
Mads Marquart
2019-07-03 23:42:32 +02:00
parent d279c96dd5
commit a9c681818a
5 changed files with 26 additions and 20 deletions

View File

@@ -54,12 +54,7 @@ master_doc = "index"
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
rst_prolog = """
.. highlight:: python
.. currentmodule:: {}
""".format(
project
)
rst_prolog = ".. currentmodule:: " + project
# The reST default role (used for this markup: `text`) to use for all
# documents.
@@ -70,6 +65,10 @@ default_role = "any"
#
nitpicky = True
# Prefer strict Python highlighting
#
highlight_language = "python3"
# If true, '()' will be appended to :func: etc. cross-reference text.
#
add_function_parentheses = False