Skip to content

Commit bcb1870

Browse files
committed
docs: fix version
1 parent 957f46e commit bcb1870

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
"""Sphinx documentation configuration."""
2424

25+
import os
26+
2527
# -- General configuration ------------------------------------------------
2628

2729
# If your documentation needs a minimal Sphinx version, state it here.
@@ -68,9 +70,9 @@
6870
# built documents.
6971
#
7072
# The short X.Y version.
71-
version = "0.0.0"
73+
version = os.getenv("READTHEDOCS_VERSION", "latest")
7274
# The full version, including alpha/beta/rc tags.
73-
release = "0.0.0"
75+
release = version
7476

7577
# The language for content autogenerated by Sphinx. Refer to documentation
7678
# for a list of supported languages.

0 commit comments

Comments
 (0)