diff --git a/readthedocs/doc_builder/python_environments.py b/readthedocs/doc_builder/python_environments.py index f470966a15f..645048c7c48 100644 --- a/readthedocs/doc_builder/python_environments.py +++ b/readthedocs/doc_builder/python_environments.py @@ -374,7 +374,11 @@ def install_core_requirements(self): self.project.get_feature_value( Feature.DEFAULT_TO_MKDOCS_0_17_3, positive='mkdocs==0.17.3', - negative='mkdocs<1.1', + negative=self.project.get_feature_value( + Feature.USE_MKDOCS_LATEST, + positive='mkdocs<1.1', + negative='mkdocs', + ), ), ) else: diff --git a/readthedocs/projects/models.py b/readthedocs/projects/models.py index 642d9304a76..7ac3a475ea1 100644 --- a/readthedocs/projects/models.py +++ b/readthedocs/projects/models.py @@ -1592,6 +1592,7 @@ def add_features(sender, **kwargs): USE_SPHINX_LATEST = 'use_sphinx_latest' DONT_INSTALL_DOCUTILS = 'dont_install_docutils' DEFAULT_TO_MKDOCS_0_17_3 = 'default_to_mkdocs_0_17_3' + USE_MKDOCS_LATEST = 'use_mkdocs_latest' USE_SPHINX_RTD_EXT_LATEST = 'rtd_sphinx_ext_latest' INSTALL_LATEST_SETUPTOOLS = 'install_latest_setuptoold' @@ -1707,6 +1708,7 @@ def add_features(sender, **kwargs): DEFAULT_TO_MKDOCS_0_17_3, _('Install mkdocs 0.17.3 by default'), ), + (USE_MKDOCS_LATEST, _('Use latest version of MkDocs')), ( USE_SPHINX_RTD_EXT_LATEST, _('Use latest version of the Read the Docs Sphinx extension'),