Skip to content

Commit

Permalink
theming: do not warn if theme is "default"
Browse files Browse the repository at this point in the history
To be compatible with old Sphinx versions we have to use "default".
  • Loading branch information
birkenfeld committed May 18, 2015
1 parent c475b1e commit 034c4e9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sphinx/theming.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ def __init__(self, name, warn=None):
'(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:
Expand Down

0 comments on commit 034c4e9

Please sign in to comment.