diff options
author | Chayim <chayim@users.noreply.github.com> | 2022-01-19 17:55:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 17:55:19 +0200 |
commit | 7d23974a62982d1b4b5586a648f8e7b17eccc6e5 (patch) | |
tree | 4b5b6a0e88655c827f01e9589b1ed1401a0a638d /docs | |
parent | afaa1c8f6d4bd7c66d6769a0a4b8d4f9a2d600d8 (diff) | |
download | redis-py-7d23974a62982d1b4b5586a648f8e7b17eccc6e5.tar.gz |
Documentation fixes: JSON Example, SSL Connection Examples, RTD version (#1887)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/conf.py | 14 | ||||
-rw-r--r-- | docs/examples/ssl_connection_examples.ipynb (renamed from docs/examples/ssl_connecton_examples.ipynb) | 0 | ||||
-rw-r--r-- | docs/redismodules.rst | 2 |
3 files changed, 12 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. diff --git a/docs/examples/ssl_connecton_examples.ipynb b/docs/examples/ssl_connection_examples.ipynb index 386e4af..386e4af 100644 --- a/docs/examples/ssl_connecton_examples.ipynb +++ b/docs/examples/ssl_connection_examples.ipynb diff --git a/docs/redismodules.rst b/docs/redismodules.rst index 07e756d..e4d36b1 100644 --- a/docs/redismodules.rst +++ b/docs/redismodules.rst @@ -110,6 +110,8 @@ These are the commands for interacting with the `RediSearch module <https://redi .. code-block:: python import redis + from redis.commands.search.field import TextField + r = redis.Redis() r.ft().create_index(TextField("play", weight=5.0), TextField("ball")) print(r.ft().info()) |