-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Describe the solution you'd like
The easiest solution would be to split arg
and argument
to a Parameters
label with a new TypedField
sphinx/sphinx/domains/c/__init__.py
Lines 297 to 308 in 0504903
_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.