mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 18:08:31 +07:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user