10000 DOC: Avoid deprecated latex_use_parts option. · Mrngilles/matplotlib@f051405 · GitHub
[go: up one dir, main page]

Skip to content

Commit f051405

Browse files
committed
DOC: Avoid deprecated latex_use_parts option.
This was deprecated in Sphinx 1.4 and causes a warning in 1.5, which kills the build due to warnings-as-errors.
1 parent fac3e68 commit f051405

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,10 @@
286286
# If false, no module index is generated.
287287
latex_use_modindex = True
288288

289-
latex_use_parts = True
289+
if hasattr(sphinx, 'version_info') and sphinx.version_info[:2] >= (1, 4):
290+
latex_toplevel_sectioning = 'part'
291+
else:
292+
latex_use_parts = True
290293

291294
# Show both class-level docstring and __init__ docstring in class
292295
# documentation

0 commit comments

Comments
 (0)
0