mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #1802 from pjxiao/feature-1794
include builtin thmemes automatically #1794
This commit is contained in:
commit
629961ebfe
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user