-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
toctree contains reference to nonexisting document #69
Comments
so setting |
For pandas we used the same 'hack' as in the numpy docs: https://raw.githubusercontent.com/numpy/numpy/master/doc/source/_templates/autosummary/class.rst, but I am not sure anymore if this was to solve those error messages (long time ago I did this for the pandas docs) |
huh, we didn't need this hack, the |
That is weird; if you figure out what's going on, let's put a note in
the README at least.
|
I'm kinda punting on it for now. This configuration Works For Me™. |
So is this suggesting that the This is very believable to me: I can't see anywhere in autosummary where it sees the mangled docs. It's either processing through the Now we no longer use |
So I think we basically need to recommend a hack at the template level, and that |
I am willing to work on this, but as I am new to the codebase would need some help parsing @jnothman 's comment above. Is there a general design document that describes what autosummary does and when? It seems there are three options for generating summaries:
What do the second and third one mean? Should one use be preferred over the others? Then there is the sentence below, what is meant by "the hack use" and what should replace it?
|
FWIW, adding these lines to the
|
I'm not really sure what to say here, and my recall is weak. The different ways to run autosummary are not really relevant as long as they only collect names to autodoc from reST files, rather than from autodoc-generated reST. I suppose you could consider fixing that in autodoc. Otherwise I'm not sure how to go about fixing this. |
|
Removing the nested directive from the template for class methods results in the method having two links in the output document where the attribute has only one, so something is different in the handling of class methods and attributes. |
maybe relate to #74 ? |
Nope, my "fix" is garbage. The attributes show up in the currently rendered documents, but formatted badly and above the methods. It seems the nested directive hack is needed to prevent duplicate rendering of both the Methods and the Attributes and that something else is happening. |
Formatted "badly" is a matter of taste. They're formatted just like Parameters and Returns. I.e. they're formatted as numpydoc formats things, rather than according to the decisions of autosummary. |
Yes, sorry, I let my frustration through. My fault for not noticing the |
It's related to the longish discussion I had here #106 (comment). I have a PR that does that (#161), but of course, that's still a bit independent from the discussion in this issue about the hack in the class template and the warnings (for this, in pandas we long time ago just copied the hack from numpy). I would also need to look at it again to again understand why it was needed. |
Maybe I have made progress. I created templates for methods, members,and attributes under
I still do not understand why the |
Could someone with commit permissions reopen since the core issue (hack needed in class template, which then causes many warnings) is not yet fixed |
wasn't the point of that PR to remove the warnings? not sure I understand your comment correctly, but if it's about tracking |
Ok, sorry for the noise. Close this and I will open a new one. |
Ah no, my apologies - I thought we were in numpy/numpy#11316. NumPy has a workaround now, but |
Just came across these warnings. Not sure if there's a better way, but I solved it by manually adding the https://stackoverflow.com/a/77588774/11214013 Docs actually built fine before, except the warnings generated... but readthedocs builds are set to fail on any warnings which I think is a good practice to keep in place. |
I'm still trying to migrate scikit-learn to numpydoc master.
I'm having some trouble with this issue:
http://stackoverflow.com/questions/12206334/sphinx-autosummary-toctree-contains-reference-to-nonexisting-document-warnings
Apparently something goes wrong with when autosummary is called?
That didn't use to be the case.
I can't really do
numpydoc_show_class_members = False
because then there is no method table any more :(The text was updated successfully, but these errors were encountered: