Merge pull request #1802 from pjxiao/feature-1794

include builtin thmemes automatically #1794
This commit is contained in:
Takayuki SHIMIZUKAWA 2015-03-23 22:09:08 +09:00
commit 629961ebfe

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: