-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi Philipp
We have started using docrep 'officially' in our project (OpenPNM). It's now merged into dev and will be release to master by the end of March.
I have it working pretty well, but there are two behaviors/features I wish it had. I apologize for being demanding, but here they are:
- It would be great if individual parameters in subclasses over-rode those from the parent automatically. For instance, if I have the following method on a parent or abstract class:
def some_awesome_method(self, param1):
r"""
Parameters
------------
param1 : int
This parameters controls blah and it's default is None
"""
And I subclass this method on a child class:
def some_awesome_method(self, param1):
r"""
Parameters
------------
param1 : int
This parameters controls the size of the timestep and it's default is **10**
"""
In the above method I have indicated a different default value for the child class, and might also want to be more specific in the text, for instance. It would be REALLY helpful is the child class method just overwrote the parent class one, without me having to think about it. I know you have functionality for removing items from the parameter list, but this requires too much knowledge of docrep on the part of developers.
- I understand that you only support 'numpydoc' valid headings (i.e. Parameters), but would it be possible to allow users to put arbitrary headings in? I use Spyder to for developing and Sphinx for doc generation, and both do not seem to mind having arbitrary headings (i.e. Transient Parameters, Reaction Parameters). This would allow me to breakup the parameter sections in the parent classes and then pick & choose which sections I show in subclasses.
Request 1 is far more important that 2.