Skip to content

Commit 373e7bd

Browse files
jsquyresericholscher
authored andcommitted
director.py: restore READTHEDOCS_VERSION_[TYPE|NAME] (#9052)
These env vars were accidentally removed in #9002. This commit naively restores the 2 missing env variables in the new get_rtd_env_vars() location. Signed-off-by: Jeff Squyres <[email protected]>
1 parent eed189a commit 373e7bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/doc_builder/director.py

+2
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ def get_rtd_env_vars(self):
401401
env = {
402402
"READTHEDOCS": "True",
403403
"READTHEDOCS_VERSION": self.data.version.slug,
404+
"READTHEDOCS_VERSION_TYPE": self.data.version.type,
405+
"READTHEDOCS_VERSION_NAME": self.data.version.verbose_name,
404406
"READTHEDOCS_PROJECT": self.data.project.slug,
405407
"READTHEDOCS_LANGUAGE": self.data.project.language,
406408
}

0 commit comments

Comments
 (0)