autodoc-skip-member isn't seeing all functions?

22 views
Skip to first unread message

Joshua Kugler

unread,
Aug 10, 2020, 4:54:59 PM8/10/20
to sphinx-users
I have an oddity here. I have a Python project for which I've generated docs. It did well. Almost everything was doc'ed. I know about the default of excluding anything starting with '_' so I created an autodoc-skip-member function that would include those. It works. I see a bunch of private methods and functions included. But...I have a module, let's call it XYZ that has both private and public functions. Sphinx is only doc'ing the public functions of XYZ, but not its private functions. I have other modules that have private functions, and it's doc'ing those.

I added a print() to the autodoc-skip-member function and it doesn't even print out the `name` of those private functions so it seems it's not even seeing it.

Any ideas?

Joshua J. Kugler

unread,
Aug 11, 2020, 8:34:51 PM8/11/20
to sphinx...@googlegroups.com
So, I figured this out. The file concerned had an __all__ statement. So, on one
hand, I understand the reason it was being excluded, but on the other hand,
why does __all__ prevent passing the identifiers the autodoc-skip-member
function?

That said, this is probably doc'ed somewhere, eh? Anybody got a pointer? :)

j

--
Joshua J. Kugler - Fairbanks, Alaska - jos...@azariah.com
Azariah Enterprises - Programming and Website Design
PGP Key: http://pgp.mit.edu/ ID 0x68108cbb73b13b6a


Komiya Takeshi

unread,
Aug 13, 2020, 11:29:05 AM8/13/20
to sphinx...@googlegroups.com
Hi Joshua,

Thank you for reporting. I believe it should be improved. Could you
file an issue to GitHub, please?
Then I'll work on it.

Thanks,
Takeshi KOMIYA

2020年8月12日(水) 9:34 Joshua J. Kugler <jos...@azariah.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/25359779.uLBTZSqOf5%40hosanna.

Joshua J. Kugler

unread,
Aug 13, 2020, 6:01:43 PM8/13/20
to sphinx...@googlegroups.com
On Thursday, August 13, 2020 7:28:49 AM AKDT Komiya Takeshi wrote:
> Hi Joshua,
>
> Thank you for reporting. I believe it should be improved. Could you
> file an issue to GitHub, please?
> Then I'll work on it.

Thanks, done! https://github.com/sphinx-doc/sphinx/issues/8119

Daniel Scott

unread,
Nov 25, 2020, 10:34:41 PM11/25/20
to sphinx...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages