diff --git a/readthedocs/doc_builder/python_environments.py b/readthedocs/doc_builder/python_environments.py index f186fc44fcb..c5a6bb56d28 100644 --- a/readthedocs/doc_builder/python_environments.py +++ b/readthedocs/doc_builder/python_environments.py @@ -356,7 +356,9 @@ def _get_core_requirements(self): if self.config.doctype == "mkdocs": pip_requirements.append("mkdocs") else: - pip_requirements.append("readthedocs-sphinx-ext") + if not self.project.has_feature(Feature.DISABLE_SPHINX_MANIPULATION): + pip_requirements.append("readthedocs-sphinx-ext") + conda_requirements.extend(["sphinx"]) return pip_requirements, conda_requirements