Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35fd945

Browse files
authored
Merge pull request #17377 from timhoffm/sphinx-version
Remove code for sphinx < 1.8
2 parents 8d33af7 + ab37ea2 commit 35fd945

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

doc/conf.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ def _check_dependencies():
101101
autosummary_generate = True
102102

103103
autodoc_docstring_signature = True
104-
if sphinx.version_info < (1, 8):
105-
autodoc_default_flags = ['members', 'undoc-members']
106-
else:
107-
autodoc_default_options = {'members': None, 'undoc-members': None}
104+
autodoc_default_options = {'members': None, 'undoc-members': None}
108105

109106
# missing-references names matches sphinx>=3 behavior, so we can't be nitpicky
110107
# for older sphinxes.
@@ -345,10 +342,7 @@ def _check_dependencies():
345342
# If false, no module index is generated.
346343
latex_use_modindex = True
347344

348-
if hasattr(sphinx, 'version_info') and sphinx.version_info[:2] >= (1, 4):
349-
latex_toplevel_sectioning = 'part'
350-
else:
351-
latex_use_parts = True
345+
latex_toplevel_sectioning = 'part'
352346

353347
# Show both class-level docstring and __init__ docstring in class
354348
# documentation

0 commit comments

Comments
 (0)