@@ -89,7 +89,8 @@ def _process_param(self, param, desc, autosum):
8989 param : str
9090 The name of the parameter
9191 desc : list of str
92- The parameter description as given in the docstring
92+ The parameter description as given in the docstring. This is
93+ ignored when autosummary logic applies.
9394 autosum : list or None
9495 If a list, autosummary-style behaviour will apply for params
9596 that are attributes of the class and have a docstring.
@@ -152,6 +153,25 @@ def _process_param(self, param, desc, autosum):
152153 return display_param , desc
153154
154155 def _str_param_list (self , name , fake_autosummary = False ):
156+ """Generate RST for a listing of parameters or similar
157+
158+ Parameter names are displayed as bold text, and descriptions
159+ are in blockquotes. Descriptions may therefore contain block
160+ markup as well.
161+
162+ Parameters
163+ ----------
164+ name : str
165+ Section name (e.g. Parameters)
166+ fake_autosummary : bool
167+ When True, the parameter names may correspond to attributes of the
168+ object beign documented, usually ``property`` instances on a class.
169+ In this case, names will be linked to fuller descriptions.
170+
171+ Returns
172+ -------
173+ rst : list of str
174+ """
155175 out = []
156176 if self [name ]:
157177 if fake_autosummary :
@@ -170,7 +190,7 @@ def _str_param_list(self, name, fake_autosummary=False):
170190 else :
171191 out += self ._str_indent ([display_param ])
172192 if desc :
173- out += ['' ]
193+ out += ['' ] # produces a blockquote, rather than a dt/dd
174194 out += self ._str_indent (desc , 8 )
175195 out += ['' ]
176196
0 commit comments