-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Duplicate member descriptions for ABC-derived classes are created. #60
Comments
@Viech - can you try and include (if you haven't already) the following in your
|
Hello @astrofrog, I already tried that after I found it in the documentation, but it makes no difference. I also don't recall using anything called |
It looks like this is an issue that happens only with Sphinx 1.8, not e.g. with Sphinx 1.6. I'll try investigating. |
There's something weird going on with Sphinx, even if I don't use automodapi and just do:
I get the extra three entries at the bottom: I think this is a Sphinx bug rather than a sphinx-automodapi issue. |
@Viech - this appears to be due to the:
option you have in your |
@astrofrog you are correct, removing that option removes the duplicate entries. So This is not an ideal solution for me as I'm using a mix of automodapi and regular sphinx and I do want undocumented public members to show in the "regular" part of the documentation, but it helps me to work around the issue. |
@Viech - just to clarify, do you mean you don't want undocumented methods/attributes to show up at all in the API docs? |
@astrofrog no, i do want them to show up because right now there are a couple of self-explaining undocumented public methods that should be part of the documentation (e.g. picos.tools.is_integer which is generated by |
@Viech - ok I see. If you just use sphinx-automodapi it should actually show undocumented methods by default, so that might be sufficient? If you would like to see additional options in |
@astrofrog, what I really want is a consistent documentation for a project/package
I think I could get it all right and consistent if I had a way to control the template that automodapi uses to create both the package .rst and each individual module .rst. I could then just leave EDIT: With respect to (1), I found that automodapi does not recurse into modules and subpackages, so just using |
I spent the day finding an almost consistent format for the PICOS documentation. For me this issue is resolved. Note that others might still be affected when they enable |
Actually the issue is still there, however it affects documented attributes now. I think the problem is that |
It seems like the opposite effect of #52 is happening as of version 0.9: Class members for ABC-derived classes are displayed twice. Please refer to https://gitlab.com/picos-api/picos/issues/117 for a full issue description (I was about to post it here initially, but GitHub wouldn't let me upload the image).
The text was updated successfully, but these errors were encountered: