mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
epub: `epub_title defaults to the project` option
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -65,6 +65,7 @@ Incompatible changes
|
||||
* LaTeX: graphics inclusion of oversized images rescales to not exceed
|
||||
the text width and height, even if width and/or height option were used.
|
||||
(refs: #5956)
|
||||
* epub: ``epub_title`` defaults to the :confval:`project` option
|
||||
|
||||
Deprecated
|
||||
----------
|
||||
|
||||
@@ -1561,7 +1561,11 @@ the `Dublin Core metadata <http://dublincore.org/>`_.
|
||||
.. confval:: epub_title
|
||||
|
||||
The title of the document. It defaults to the :confval:`html_title` option
|
||||
but can be set independently for epub creation.
|
||||
but can be set independently for epub creation. It defaults to the
|
||||
:confval:`project` option.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
It defaults to the ``project`` option.
|
||||
|
||||
.. confval:: epub_description
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ def setup(app):
|
||||
app.add_config_value('epub_version', 3.0, 'epub') # experimental
|
||||
app.add_config_value('epub_theme', 'epub', 'epub')
|
||||
app.add_config_value('epub_theme_options', {}, 'epub')
|
||||
app.add_config_value('epub_title', lambda self: self.html_title, 'epub')
|
||||
app.add_config_value('epub_title', lambda self: self.project, 'epub')
|
||||
app.add_config_value('epub_author', lambda self: self.author, 'epub')
|
||||
app.add_config_value('epub_language', lambda self: self.language or 'en', 'epub')
|
||||
app.add_config_value('epub_publisher', lambda self: self.author, 'epub')
|
||||
|
||||
Reference in New Issue
Block a user