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)
|
'(missing theme.conf?)' % name)
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
if name == 'default' and warn:
|
# Do not warn yet -- to be compatible with old Sphinxes, people *have*
|
||||||
warn("'default' html theme has been renamed to 'classic'. "
|
# to use "default".
|
||||||
"Please change your html_theme setting either to "
|
# if name == 'default' and warn:
|
||||||
"the new 'alabaster' default theme, or to 'classic' "
|
# warn("'default' html theme has been renamed to 'classic'. "
|
||||||
"to keep using the old default.")
|
# "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]
|
tdir, tinfo = self.themes[name]
|
||||||
if tinfo is None:
|
if tinfo is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user