mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Warn about sphinx_rtd_theme being unbundled
This commit is contained in:
parent
12dde8afdb
commit
8ca05af9bc
@ -102,8 +102,12 @@ class Theme(object):
|
|||||||
if name not in self.themes:
|
if name not in self.themes:
|
||||||
self.load_extra_theme(name)
|
self.load_extra_theme(name)
|
||||||
if name not in self.themes:
|
if name not in self.themes:
|
||||||
raise ThemeError('no theme named %r found '
|
if name == 'sphinx_rtd_theme':
|
||||||
'(missing theme.conf?)' % name)
|
raise ThemeError('sphinx_rtd_theme has been unbundled since version '
|
||||||
|
'1.4.0. Please install it manually.')
|
||||||
|
else:
|
||||||
|
raise ThemeError('no theme named %r found '
|
||||||
|
'(missing theme.conf?)' % name)
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
# Do not warn yet -- to be compatible with old Sphinxes, people *have*
|
# Do not warn yet -- to be compatible with old Sphinxes, people *have*
|
||||||
|
Loading…
Reference in New Issue
Block a user