summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-08-06 08:52:49 -0400
committerJulian Berman <Julian@GrayVines.com>2020-08-06 12:52:49 -0400
commit506cea3e52699bedeab62971d3bdf23936b901d0 (patch)
treeaa1c64ec036007be9b493e4cc7e0ccfb9ec11639 /docs/conf.py
parent991e62e8e3387a08fd1f2bc301ba8de5a2e9ce66 (diff)
downloadjsonschema-506cea3e52699bedeab62971d3bdf23936b901d0.tar.gz
Enable automatic section heading labels in the docs.
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index d63f385..565b00a 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -25,6 +25,7 @@ sys.path = ext_paths + sys.path
# coming with Sphinx (named "sphinx.ext.*") or your custom ones.
extensions = [
"sphinx.ext.autodoc",
+ "sphinx.ext.autosectionlabel",
"sphinx.ext.coverage",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
@@ -249,6 +250,10 @@ linkcheck_ignore = [
"https://github.com/Julian/jsonschema/workflows/CI/badge.svg",
]
+# -- Options for sphinxcontrib-autosectionlabel ---------------------------
+
+autosectionlabel_prefix_document = True
+
# -- Options for sphinxcontrib-spelling -----------------------------------
spelling_word_list_filename = "spelling-wordlist.txt"