Skip to content

Commit

Permalink
director.py: restore READTHEDOCS_VERSION_[TYPE|NAME] (#9052)
Browse files Browse the repository at this point in the history
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 <jeff@squyres.com>
  • Loading branch information
jsquyres authored and ericholscher committed Mar 30, 2022
1 parent eed189a commit 373e7bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readthedocs/doc_builder/director.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ def get_rtd_env_vars(self):
env = {
"READTHEDOCS": "True",
"READTHEDOCS_VERSION": self.data.version.slug,
"READTHEDOCS_VERSION_TYPE": self.data.version.type,
"READTHEDOCS_VERSION_NAME": self.data.version.verbose_name,
"READTHEDOCS_PROJECT": self.data.project.slug,
"READTHEDOCS_LANGUAGE": self.data.project.language,
}
Expand Down

0 comments on commit 373e7bd

Please sign in to comment.