diff options
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/docs/conf.py b/docs/conf.py index 0f11442..8bc58e0 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,13 @@ copyright = "2021, Redis Inc" # The short X.Y version. import redis -version = ".".join(redis.__version__.split(".")[0:2]) +version = ".".join(redis.__version__.split(".")[0:3]) +release = version +if version == "99.99.99": + release = "dev" -# The full version, including alpha/beta/rc tags. -release = redis.__version__ +## The full version, including alpha/beta/rc tags. +#release = redis.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |