Skip to content

Commit 9351e71

Browse files
ericholscheragjohnson
authored andcommitted
Missed a couple places to set READTHEDOCS_LANGUAGE (#5951)
Not sure how I missed this. This should cause us to have proper env vars in builds
1 parent 44d5510 commit 9351e71

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

readthedocs/projects/tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ def get_env_vars(self):
649649
'READTHEDOCS': True,
650650
'READTHEDOCS_VERSION': self.version.slug,
651651
'READTHEDOCS_PROJECT': self.project.slug,
652+
'READTHEDOCS_LANGUAGE': self.project.language,
652653
}
653654

654655
if self.config.conda is not None:

readthedocs/rtd_tests/tests/test_builds.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ def test_get_env_vars(self):
341341
'READTHEDOCS': True,
342342
'READTHEDOCS_VERSION': version.slug,
343343
'READTHEDOCS_PROJECT': project.slug,
344+
'READTHEDOCS_LANGUAGE': project.language,
344345
'BIN_PATH': os.path.join(
345346
project.doc_path,
346347
'envs',

0 commit comments

Comments
 (0)