Merge pull request #2208 from tk0miya/2027_html_title_only_accepts_string

Fix #2027: ``make epub`` got errors if ``html_title`` is None
This commit is contained in:
Takeshi KOMIYA 2016-01-17 18:59:44 +09:00
commit 8c8f3dbc9b
3 changed files with 5 additions and 6 deletions

View File

@ -565,8 +565,7 @@ that use Sphinx's HTMLWriter class.
The "title" for HTML documentation generated with Sphinx's own templates.
This is appended to the ``<title>`` tag of individual pages, and used in the
navigation bar as the "topmost" element. It defaults to :samp:`'{<project>}
v{<revision>} documentation'` (with the values coming from the config
values).
v{<revision>} documentation'`.
.. confval:: html_short_title

View File

@ -92,7 +92,7 @@ class Config(object):
html_theme_options = ({}, 'html'),
html_title = (lambda self: l_('%s %s documentation') %
(self.project, self.release),
'html'),
'html', [str]),
html_short_title = (lambda self: self.html_title, 'html'),
html_style = (None, 'html', [str]),
html_logo = (None, 'html', [str]),

View File

@ -190,9 +190,9 @@ html_theme = 'alabaster'
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# The name for this set of Sphinx documents.
# "<project> v<release> documentation" by default.
#html_title = u'%(project_str)s v%(release_str)s'
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None