Fix #3261: `latex_use_parts` makes sphinx crash

This commit is contained in:
Takeshi KOMIYA 2016-12-19 11:34:41 +09:00
parent d876b11805
commit 12096b3b86
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Bugs fixed
* #185: References to section title including raw node has broken * #185: References to section title including raw node has broken
* #3255: In Py3.4 environment, autodoc doesn't support documentation for * #3255: In Py3.4 environment, autodoc doesn't support documentation for
attributes of Enum class correctly. attributes of Enum class correctly.
* #3261: ``latex_use_parts`` makes sphinx crash
Release 1.5.1 (released Dec 13, 2016) Release 1.5.1 (released Dec 13, 2016)
===================================== =====================================

View File

@ -230,7 +230,7 @@ def validate_config_values(app):
app.warn('latex_use_parts conflicts with latex_toplevel_sectioning, ignored.') app.warn('latex_use_parts conflicts with latex_toplevel_sectioning, ignored.')
else: else:
app.warn('latex_use_parts is deprecated. Use latex_toplevel_sectioning instead.') app.warn('latex_use_parts is deprecated. Use latex_toplevel_sectioning instead.')
app.config.latex_toplevel_sectioning = 'parts' app.config.latex_toplevel_sectioning = 'part'
if app.config.latex_use_modindex is not True: # changed by user if app.config.latex_use_modindex is not True: # changed by user
app.warn('latex_use_modindex is deprecated. Use latex_domain_indices instead.') app.warn('latex_use_modindex is deprecated. Use latex_domain_indices instead.')