File tree 3 files changed +13
-7
lines changed 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
-
3
1
"""
4
2
MkDocs_ backend for building docs.
5
3
6
4
.. _MkDocs: http://www.mkdocs.org/
7
5
"""
6
+
8
7
import json
9
8
import logging
10
9
import os
Original file line number Diff line number Diff line change 1
- # -*- coding: utf-8 -*-
2
-
3
1
"""An abstraction over virtualenv and Conda environments."""
4
2
5
3
import copy
9
7
import os
10
8
import shutil
11
9
12
- from django .conf import settings
13
-
14
10
from readthedocs .config import PIP , SETUPTOOLS
15
11
from readthedocs .config .models import PythonInstall , PythonInstallRequirements
16
12
from readthedocs .doc_builder .config import load_yaml_config
@@ -295,7 +291,13 @@ def install_core_requirements(self):
295
291
]
296
292
297
293
if self .config .doctype == 'mkdocs' :
298
- requirements .append ('mkdocs==0.17.3' )
294
+ requirements .append (
295
+ self .project .get_feature_value (
296
+ Feature .DEFAULT_TO_MKDOCS_0_17_3 ,
297
+ positive = 'mkdocs==0.17.3' ,
298
+ negative = 'mkdocs<1.1' ,
299
+ ),
300
+ )
299
301
else :
300
302
# We will assume semver here and only automate up to the next
301
303
# backward incompatible release: 2.x
Original file line number Diff line number Diff line change @@ -1312,6 +1312,7 @@ def add_features(sender, **kwargs):
1312
1312
USE_TESTING_BUILD_IMAGE = 'use_testing_build_image'
1313
1313
SHARE_SPHINX_DOCTREE = 'share_sphinx_doctree'
1314
1314
USE_PDF_LATEXMK = 'use_pdf_latexmk'
1315
+ DEFAULT_TO_MKDOCS_0_17_3 = 'default_to_mkdocs_0_17_3'
1315
1316
1316
1317
FEATURES = (
1317
1318
(USE_SPHINX_LATEST , _ ('Use latest version of Sphinx' )),
@@ -1346,6 +1347,10 @@ def add_features(sender, **kwargs):
1346
1347
SHARE_SPHINX_DOCTREE ,
1347
1348
_ ('Use shared directory for doctrees' ),
1348
1349
),
1350
+ (
1351
+ DEFAULT_TO_MKDOCS_0_17_3 ,
1352
+ _ ('Install mkdocs 0.17.3 by default' )
1353
+ ),
1349
1354
)
1350
1355
1351
1356
projects = models .ManyToManyField (
You can’t perform that action at this time.
0 commit comments