Skip to content

Add config option for adding :toctree: on autosummary lists. #6

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 2 commits into from
Jan 7, 2014

Conversation

takluyver
Copy link
Contributor

IPython uses some lists of class attributes and methods, but we don't generate separate doc pages for each entry, so Sphinx throws warnings about "toctree contains reference to nonexisting document".

This adds a Sphinx option called numpydoc_class_members_toctree, defaulting to True, controlling whether the autosummary lists are generated with the :toctree: option. Setting it to False suppresses these warnings, but prevents the lists acting as tables of contents.

Addresses issue gh-5.

IPython uses some lists of class attributes and methods, but we don't
generate separate doc pages for each entry, so Sphinx throws warnings
about "toctree contains reference to nonexisting document".

This adds a Sphinx option called 'numpydoc_class_members_toctree',
defaulting to True, controlling whether the autosummary lists are
generated with the :toctree: option. Setting it to False suppresses
these warnings, but prevents the lists acting as tables of contents.

Addresses issue numpygh-5.
takluyver added a commit to takluyver/ipython that referenced this pull request Jan 6, 2014
The second is a new option that my PR numpy/numpydoc#6 adds, so we
should wait until that is merged to merge this.
takluyver added a commit to takluyver/ipython that referenced this pull request Jan 6, 2014
The second is a new option that my PR numpy/numpydoc#6 adds, so we
should wait until that is merged to merge this.
@pv
Copy link
Member

pv commented Jan 7, 2014

Should also be mentioned in the README

@takluyver
Copy link
Contributor Author

Thanks, I felt like it should be documented somewhere, I just hadn't seen that. Done. :-)

pv added a commit that referenced this pull request Jan 7, 2014
Add config option for adding :toctree: on autosummary lists.
@pv pv merged commit 5e6cbb0 into numpy:master Jan 7, 2014
@pv
Copy link
Member

pv commented Jan 7, 2014

Thanks, LGTM

mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
The second is a new option that my PR numpy/numpydoc#6 adds, so we
should wait until that is merged to merge this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants