mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Consider the following piece of reST:: .. automodule:: sphinx.ext.autosummary :members: .. autosummary:: sphinx.ext.autosummary.Autosummary This inserts an autosummary after the module docstring, but before the members of the module. Without the change in this commit, this would fail because `import_by_name` would attempt to import:: sphinx.ext.autosummary.sphinx.ext.autosummary.Autosumary because the prefix (from the parent) is `sphinx.ext.autosummary`, and the name is `sphinx.ext.autosummary.Autosummary`, which is able to be imported from `sphinx.ext.autosummary`, but is not the way that anyone would want to refer to it. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> |
||
---|---|---|
.. | ||
advanced | ||
builders | ||
domains | ||
extensions | ||
restructuredtext | ||
configuration.rst | ||
index.rst | ||
installation.rst | ||
markdown.rst | ||
quickstart.rst | ||
referencing.rst | ||
theming.rst |