Only display the warning for a specific set of themes

Closes #819
This commit is contained in:
Dougal Matthews
2016-02-05 12:19:52 +00:00
parent e6812a45d0
commit c2ff004a85

View File

@@ -293,7 +293,17 @@ class Theme(OptionallyRequired):
themes = utils.get_theme_names()
if value in themes:
if value in ['mkdocs', 'readthedocs']:
# These themes have been moved to the mkdocs-bootstrap and
# mkdocs-bootswatch packages. At some point we wont depend on
# these by default.
moved_themes = [
'bootstrap', 'amelia', 'cerulean', 'cosmo', 'cyborg',
'flatly', 'journal', 'readable', 'simplex', 'slate',
'spacelab', 'united', 'yeti'
]
if value not in moved_themes:
return value
self.warnings.append(