Skip to content

Commit 39f499d

Browse files
Define rtd_version for locally build docs (#5287)
Closes #5284
1 parent 4dbcacc commit 39f499d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@
8787
rtd_version = os.environ.get("READTHEDOCS_VERSION", "")
8888
if "." not in rtd_version and rtd_version.lower() != "stable":
8989
version = "dev"
90+
else:
91+
rtd_version = "local"
9092
# The full version, including alpha/beta/rc tags.
9193
release = version
9294

0 commit comments

Comments
 (0)