include builtin thmemes automatically #1794

This commit is contained in:
Takayuki Hirai 2015-03-23 19:09:40 +09:00
parent 11f9b5ff20
commit 974585d4d6

View File

@ -133,6 +133,11 @@ class Theme(object):
inherit = self.themeconf.get('theme', 'inherit')
except configparser.NoOptionError:
raise ThemeError('theme %r doesn\'t have "inherit" setting' % name)
if inherit in ['alabaster', 'sphinx_rtd_theme']:
# include 'alabaster' or 'sphinx_themes' automatically #1794
self.load_extra_theme(inherit)
if inherit == 'none':
self.base = None
elif inherit not in self.themes: