@@ -89,7 +89,8 @@ def _process_param(self, param, desc, autosum):
89
89
param : str
90
90
The name of the parameter
91
91
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.
93
94
autosum : list or None
94
95
If a list, autosummary-style behaviour will apply for params
95
96
that are attributes of the class and have a docstring.
@@ -152,6 +153,25 @@ def _process_param(self, param, desc, autosum):
152
153
return display_param , desc
153
154
154
155
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
+ """
155
175
out = []
156
176
if self [name ]:
157
177
if fake_autosummary :
@@ -170,7 +190,7 @@ def _str_param_list(self, name, fake_autosummary=False):
170
190
else :
171
191
out += self ._str_indent ([display_param ])
172
192
if desc :
173
- out += ['' ]
193
+ out += ['' ] # produces a blockquote, rather than a dt/dd
174
194
out += self ._str_indent (desc , 8 )
175
195
out += ['' ]
176
196
0 commit comments