@@ -231,6 +231,16 @@ The following directives are provided for module and class contents:
231231 Describe the location where the object is defined. The default value is
232232 the module specified by :rst:dir:`py:currentmodule`.
233233
234+ .. rst:directive:option:: single-line-parameter-list
235+ :type: no value
236+
237+ Ensures that the function's arguments will be emitted on a single logical
238+ line, overriding :confval:`python_maximum_signature_line_length` and
239+ :confval:`maximum_signature_line_length`.
240+
241+ .. versionadded:: 7.1
242+
243+
234244 .. rst :directive :: .. py:data:: name
235245
236246 Describes global data in a module, including both variables and values used
@@ -329,6 +339,15 @@ The following directives are provided for module and class contents:
329339 Describe the location where the object is defined. The default value is
330340 the module specified by :rst:dir:`py:currentmodule`.
331341
342+ .. rst:directive:option:: single-line-parameter-list
343+ :type: no value
344+
345+ Ensures that the class constructor's arguments will be emitted on a single
346+ logical line, overriding :confval:`python_maximum_signature_line_length`
347+ and :confval:`maximum_signature_line_length`.
348+
349+ .. versionadded:: 7.1
350+
332351 .. rst :directive :: .. py:attribute:: name
333352
334353 Describes an object data attribute. The description should include
@@ -441,6 +460,15 @@ The following directives are provided for module and class contents:
441460 Describe the location where the object is defined. The default value is
442461 the module specified by :rst:dir:`py:currentmodule`.
443462
463+ .. rst:directive:option:: single-line-parameter-list
464+ :type: no value
465+
466+ Ensures that the method's arguments will be emitted on a single logical
467+ line, overriding :confval:`python_maximum_signature_line_length` and
468+ :confval:`maximum_signature_line_length`.
469+
470+ .. versionadded:: 7.1
471+
444472 .. rst:directive:option:: staticmethod
445473 :type: no value
446474
@@ -494,6 +522,15 @@ The following directives are provided for module and class contents:
494522 There is no ``py:deco `` role to link to a decorator that is marked up with
495523 this directive; rather, use the :rst:role: `py:func ` role.
496524
525+ .. rst:directive:option:: single-line-parameter-list
526+ :type: no value
527+
528+ Ensures that the decorator's arguments will be emitted on a single logical
529+ line, overriding :confval:`python_maximum_signature_line_length` and
530+ :confval:`maximum_signature_line_length`.
531+
532+ .. versionadded:: 7.1
533+
497534 .. rst :directive :: .. py:decoratormethod:: name
498535 .. py:decoratormethod:: name(signature)
499536
@@ -763,6 +800,15 @@ The C domain (name **c**) is suited for documentation of C API.
763800 :retval NULL: under some conditions.
764801 :retval NULL: under some other conditions as well.
765802
803+ .. rst:directive:option:: single-line-parameter-list
804+ :type: no value
805+
806+ Ensures that the function's parameters will be emitted on a single logical
807+ line, overriding :confval:`c_maximum_signature_line_length` and
808+ :confval:`maximum_signature_line_length`.
809+
810+ .. versionadded:: 7.1
811+
766812
767813 .. rst :directive :: .. c:macro:: name
768814 .. c:macro:: name(arg list)
@@ -776,6 +822,15 @@ The C domain (name **c**) is suited for documentation of C API.
776822 .. versionadded :: 3.0
777823 The function style variant.
778824
825+ .. rst:directive:option:: single-line-parameter-list
826+ :type: no value
827+
828+ Ensures that the macro's parameters will be emitted on a single logical
829+ line, overriding :confval:`c_maximum_signature_line_length` and
830+ :confval:`maximum_signature_line_length`.
831+
832+ .. versionadded:: 7.1
833+
779834 .. rst :directive :: .. c:struct:: name
780835
781836 Describes a C struct.
@@ -1126,6 +1181,15 @@ visibility statement (``public``, ``private`` or ``protected``).
11261181 .. cpp:function:: template<> \
11271182 void print(int i)
11281183
1184+ .. rst:directive:option:: single-line-parameter-list
1185+ :type: no value
1186+
1187+ Ensures that the function's parameters will be emitted on a single logical
1188+ line, overriding :confval:`cpp_maximum_signature_line_length` and
1189+ :confval:`maximum_signature_line_length`.
1190+
1191+ .. versionadded:: 7.1
1192+
11291193.. rst:directive:: .. cpp:member:: (member) variable declaration
11301194 .. cpp:var:: (member) variable declaration
11311195
@@ -1908,13 +1972,31 @@ The JavaScript domain (name **js**) provides the following directives:
19081972 :throws SomeError: For whatever reason in that case.
19091973 :returns: Something.
19101974
1975+ .. rst:directive:option:: single-line-parameter-list
1976+ :type: no value
1977+
1978+ Ensures that the function's parameters will be emitted on a single logical
1979+ line, overriding :confval:`javascript_maximum_signature_line_length` and
1980+ :confval:`maximum_signature_line_length`.
1981+
1982+ .. versionadded:: 7.1
1983+
19111984 .. rst :directive :: .. js:method:: name(signature)
19121985
19131986 This directive is an alias for :rst:dir: `js:function `, however it describes
19141987 a function that is implemented as a method on a class object.
19151988
19161989 .. versionadded :: 1.6
19171990
1991+ .. rst:directive:option:: single-line-parameter-list
1992+ :type: no value
1993+
1994+ Ensures that the function's parameters will be emitted on a single logical
1995+ line, overriding :confval:`javascript_maximum_signature_line_length` and
1996+ :confval:`maximum_signature_line_length`.
1997+
1998+ .. versionadded:: 7.1
1999+
19182000 .. rst :directive :: .. js:class:: name
19192001
19202002 Describes a constructor that creates an object. This is basically like a
@@ -1933,6 +2015,15 @@ The JavaScript domain (name **js**) provides the following directives:
19332015 :param string name: The name of the animal
19342016 :param number age: an optional age for the animal
19352017
2018+ .. rst:directive:option:: single-line-parameter-list
2019+ :type: no value
2020+
2021+ Ensures that the function's parameters will be emitted on a single logical
2022+ line, overriding :confval:`javascript_maximum_signature_line_length` and
2023+ :confval:`maximum_signature_line_length`.
2024+
2025+ .. versionadded:: 7.1
2026+
19362027 .. rst :directive :: .. js:data:: name
19372028
19382029 Describes a global variable or constant.
0 commit comments