You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm generating documentation for classes that extend torch.nn.Module, which has a ton of methods. I don't want to include the inherited methods in my documentation, just the ones I wrote myself.
Since I don't include inherited-members, I don't expect them to be documented. And in fact the "On this page" sidebar only lists the methods in my subclass. But the main "Methods" section still lists all of them:
If I add "inherited-members": True then they appear in both places. But I don't want them to appear in either. How do I make that happen?
I'm using Sphinx 9.1.0 and pydata-sphinx-theme 0.20.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm generating documentation for classes that extend
torch.nn.Module, which has a ton of methods. I don't want to include the inherited methods in my documentation, just the ones I wrote myself.Here's how I define the options in conf.py.
Since I don't include
inherited-members, I don't expect them to be documented. And in fact the "On this page" sidebar only lists the methods in my subclass. But the main "Methods" section still lists all of them:If I add
"inherited-members": Truethen they appear in both places. But I don't want them to appear in either. How do I make that happen?I'm using Sphinx 9.1.0 and pydata-sphinx-theme 0.20.0.
Beta Was this translation helpful? Give feedback.
All reactions