summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 0f11442..b99e46c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -35,6 +35,12 @@ extensions = [
"sphinx.ext.autosectionlabel",
]
+# AutosectionLabel settings.
+# Uses a <page>:<label> schema which doesn't work for duplicate sub-section
+# labels, so set max depth.
+autosectionlabel_prefix_document = True
+autosectionlabel_maxdepth = 2
+
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
@@ -58,10 +64,10 @@ copyright = "2021, Redis Inc"
# The short X.Y version.
import redis
-version = ".".join(redis.__version__.split(".")[0:2])
-
-# The full version, including alpha/beta/rc tags.
-release = redis.__version__
+version = ".".join(redis.__version__.split(".")[0:3])
+release = version
+if version == "99.99.99":
+ release = "dev"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.