-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Milestone
Description
Problem
I use napoleon and autosummary for numpydoc-style automatic documentation generation. All the pages in my "API Reference" section switched from the "Expected Result" to the "Actual Result" after upgrading to version 0.5.0 (see below).
For details, you can also compare this older version of my docs on readthedocs.io, generated with sphinx_rtd_theme 0.4.3, with the stable version, generated with 0.5.0. Note the results are the same when I generate the documentation locally.
Expected Result
Normal numpydoc-style parameter tables:
Actual Result
Weird tables, with parameter lists bleeding into the margin and a two-column table rather than bullet points for parameter names:
Reproducible Project
Documentation tree: https://github.com/lukelbd/proplot/tree/master/docs
Relevant contents of conf.py:
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'IPython.sphinxext.ipython_console_highlighting',
'IPython.sphinxext.ipython_directive', # for ipython highlighting
'sphinx.ext.autodoc', # include documentation from docstrings
'sphinx.ext.doctest', # >>> examples
'sphinx.ext.extlinks', # for :pr:, :issue:, :commit:
'sphinx.ext.autosectionlabel', # use :ref:`Heading` for any heading
'sphinx.ext.todo', # Todo headers and todo:: directives
'sphinx.ext.mathjax', # LaTeX style math
'sphinx.ext.viewcode', # view code links
'sphinx.ext.napoleon', # for NumPy style docstrings
'sphinx.ext.intersphinx', # external links
'sphinx.ext.autosummary', # autosummary directive
'sphinxext.custom_roles', # local extension
'sphinx_copybutton',
'sphinx_automodapi.automodapi', # see: https://github.com/lukelbd/sphinx-automodapi/tree/proplot-mods # noqa
'nbsphinx',
]
# Napoleon options
# See: http://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
napoleon_use_ivar = False
napoleon_use_param = False
napoleon_use_keyword = False
napoleon_use_rtype = False
napoleon_numpy_docstring = True
napoleon_google_docstring = False
napoleon_include_init_with_doc = False # move init doc to 'class' doc
# Rtd theme
html_theme = 'sphinx_rtd_theme'
html_theme_options = {
'logo_only': True,
'display_version': False,
'collapse_navigation': True,
'navigation_depth': 4,
'prev_next_buttons_location': 'bottom', # top and bottom
}Environment Info
- Python Version: 3.6
- Sphinx Version: 3.1.1
- RTD Theme Version: 0.5.0

