8000 Remove code for sphinx < 1.8 by timhoffm · Pull Request #17377 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove code for sphinx < 1.8 #17377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def _check_dependencies():
autosummary_generate = True

autodoc_docstring_signature = True
if sphinx.version_info < (1, 8):
autodoc_default_flags = ['members', 'undoc-members']
else:
autodoc_default_options = {'members': None, 'undoc-members': None}
autodoc_default_options = {'members': None, 'undoc-members': None}

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

if hasattr(sphinx, 'version_info') and sphinx.version_info[:2] >= (1, 4):
latex_toplevel_sectioning = 'part'
else:
latex_use_parts = True
latex_toplevel_sectioning = 'part'

# Show both class-level docstring and __init__ docstring in class
# documentation
Expand Down
0