mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
theming: do not warn if theme is "default"
To be compatible with old Sphinx versions we have to use "default".
This commit is contained in:
parent
c475b1eb6b
commit
034c4e9424
@ -101,11 +101,13 @@ class Theme(object):
|
||||
'(missing theme.conf?)' % name)
|
||||
self.name = name
|
||||
|
||||
if name == 'default' and warn:
|
||||
warn("'default' html theme has been renamed to 'classic'. "
|
||||
"Please change your html_theme setting either to "
|
||||
"the new 'alabaster' default theme, or to 'classic' "
|
||||
"to keep using the old default.")
|
||||
# Do not warn yet -- to be compatible with old Sphinxes, people *have*
|
||||
# to use "default".
|
||||
# if name == 'default' and warn:
|
||||
# warn("'default' html theme has been renamed to 'classic'. "
|
||||
# "Please change your html_theme setting either to "
|
||||
# "the new 'alabaster' default theme, or to 'classic' "
|
||||
# "to keep using the old default.")
|
||||
|
||||
tdir, tinfo = self.themes[name]
|
||||
if tinfo is None:
|
||||
|
Loading…
Reference in New Issue
Block a user