mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-14 17:32:12 -05:00
Warn about sphinx_rtd_theme being unbundled
This commit is contained in:
1 parent
12dde8afdb
commit
8ca05af9bc
1 file changed
+6
-2
+6
-2
@@ -102,8 +102,12 @@ class Theme(object):
|
||||
if name not in self.themes:
|
||||
self.load_extra_theme(name)
|
||||
if name not in self.themes:
|
||||
raise ThemeError('no theme named %r found '
|
||||
'(missing theme.conf?)' % name)
|
||||
if name == 'sphinx_rtd_theme':
|
||||
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
|
||||
|
||||
# Do not warn yet -- to be compatible with old Sphinxes, people *have*
|
||||
|
||||
Reference in new issue
Block a user