-
-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Description
I am not sure of the interactions between all the pieces, but here my understanding:
- numpy has a
class.rst
template that extends the one in sphinx's autosummary extension. It adds atoctree
option to a nestedautosummary
directive (nested under aHACK
directive) - During the parse phase, sphinx adds the
toctree
contents to the documentation, since this is all done with regex and it doesn't care there are nested directives - Since sphinx ignores nested directives during output processing, the
toctree
is not generated - As far as sphinx is concerned, the generated documents are not in any
toctree
, so we added anorphan
tag to them in additional templates in numpy to avoid a warning.
So why do we need the toctree
in the template in the first place? Removing the numpy class.rst
seems to produce problematic documentation. Is this a numpydoc or sphinx problem or just a feature?
Metadata
Metadata
Assignees
Labels
No labels