Describe the solution you'd like
The easiest solution would be to split arg and argument to a Parameters label with a new TypedField
|
_function_doc_field_types = [ |
|
TypedField('parameter', label=_('Parameters'), |
|
names=('param', 'parameter', 'arg', 'argument'), |
|
typerolename='expr', typenames=('type',)), |
|
GroupedField('retval', label=_('Return values'), |
|
names=('retvals', 'retval'), |
|
can_collapse=True), |
|
Field('returnvalue', label=_('Returns'), has_arg=False, |
|
names=('returns', 'return')), |
|
Field('returntype', label=_('Return type'), has_arg=False, |
|
names=('rtype',)), |
|
] |
Describe alternatives you've considered
Or toggle the label with a flag somehow.
Happy to open a PR if this looks like a viable solution and of course for alternative solutions.
Describe the solution you'd like
The easiest solution would be to split
argandargumentto aParameterslabel with a newTypedFieldsphinx/sphinx/domains/c/__init__.py
Lines 297 to 308 in 0504903
Describe alternatives you've considered
Or toggle the label with a flag somehow.
Happy to open a PR if this looks like a viable solution and of course for alternative solutions.