diff options
author | vitaut <victor.zverovich@gmail.com> | 2016-01-08 08:08:04 -0800 |
---|---|---|
committer | vitaut <victor.zverovich@gmail.com> | 2016-01-08 08:08:04 -0800 |
commit | 8ca05af9bc199aa59209dc9552aeec3889ce042c (patch) | |
tree | 6338f5ecfc8ca3ecb43e8504df60d5e517907b24 /sphinx/theming.py | |
parent | 12dde8afdb0a7bb5576e2656692c3478c69d8cc3 (diff) | |
download | sphinx-git-8ca05af9bc199aa59209dc9552aeec3889ce042c.tar.gz |
Warn about sphinx_rtd_theme being unbundled
Diffstat (limited to 'sphinx/theming.py')
-rw-r--r-- | sphinx/theming.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sphinx/theming.py b/sphinx/theming.py index 6be331194..1078997ce 100644 --- a/sphinx/theming.py +++ b/sphinx/theming.py @@ -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* |