Repository navigation
Conversation
|
Note if this change is accepted, I would be happy to try to do the same for |
|
@shimizukawa could you give us advice for this interface? |
stephenfin
left a comment
There was a problem hiding this comment.
Yup, this is a good idea. Would like to see a similar option it for special-members too, as you suggest
|
|
||
| # remove members given by exclude-members | ||
| if self.options.exclude_members: | ||
| exclude = self.options.exclude_members or \ |
There was a problem hiding this comment.
nit: I'd rather see this wrapped in brackets as it reads a little better. However, we use / elsewhere in the code base so it's not a pressing issue
Feedback from Stephen Finucane reviewing pull request sphinx-doc#4076.
|
This may not be the most elegant way to do this (since I turn the list of special methods into a comma-separated string), but it seems to work OK in my initial testing. TODO: Testing overrides with different entries in the RST file directives... |
|
Sorry for the delay, I've been ill which delayed looking at this. I may be doing something wrong with my local testing, but it seems neither i.e. The special methods part of this patch needs more work. I'm happy to remove this in the short term if you'd rather merge the exclude members work (which I am happy with). |
|
@peterjc If you could point to the exact sections that are causing issues, I'd be happy to take a look this evening? |
|
@stephenfin do you know how where the RST file specific autodoc directive for special methods is loaded and applied? Update: I've started adding logginge.g. This output running At what point does this RST file's entry Note my |
|
To try to understand what is breaking,I'm wondering what the documentation update c333f51 refers to - this added the text for The git commit comment is "Doc change for d7ac5e46307d" but that hash does not seem to be in the tree... Update: I'm guessing it refers to 5b9f431 "Changed the |
Entry in the RST file most important, then conf.py entry autodoc_special_members (list), finally conf.py entry autodoc_default_flags (where inclusion here means ALL special methods).
|
As part of fixing the priorities for the new |
|
Is there anything else that I can improve/fix before this is reviewed by @shimizukawa? |
+1 (by a quick look..) |
|
+1 |
|
Now I merged #5215 instead. |
|
That's great - I'll give this new functionality a test next time I work on our documentation. Thank you 😀 |
1 similar comment
|
That's great - I'll give this new functionality a test next time I work on our documentation. Thank you 😀 |
Feature or Bugfix
Purpose
conf.pysettingautodoc_exclude_members(update) andautodoc_special_membersRelates
:exclude-members:with apidoc and autodoc.