Skip to content

Commit 8b077e9

Browse files
committed
Use config object in python env
1 parent 019fc27 commit 8b077e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readthedocs/doc_builder/python_environments.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def install_core_requirements(self):
236236
'recommonmark==0.4.0',
237237
]
238238

239-
if self.project.documentation_type == 'mkdocs':
239+
if self.config.doctype == 'mkdocs':
240240
requirements.append('mkdocs==0.17.3')
241241
else:
242242
# We will assume semver here and only automate up to the next
@@ -275,7 +275,7 @@ def install_core_requirements(self):
275275
def install_user_requirements(self):
276276
requirements_file_path = self.config.python.requirements
277277
if not requirements_file_path and requirements_file_path != '':
278-
builder_class = get_builder_class(self.project.documentation_type)
278+
builder_class = get_builder_class(self.config.doctype)
279279
docs_dir = (builder_class(build_env=self.build_env, python_env=self)
280280
.docs_dir())
281281
paths = [docs_dir, '']
@@ -352,7 +352,7 @@ def install_core_requirements(self):
352352
'recommonmark',
353353
]
354354

355-
if self.project.documentation_type == 'mkdocs':
355+
if self.config.doctype == 'mkdocs':
356356
pip_requirements.append('mkdocs')
357357
else:
358358
pip_requirements.append('readthedocs-sphinx-ext')

0 commit comments

Comments
 (0)