mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Allow multi-line object description signatures (#11011)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com> Co-authored-by: TLouf <loufthomas@gmail.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
c_maximum_signature_line_length = len("str hello(str name)") - 1
|
||||
@@ -0,0 +1,4 @@
|
||||
domain-c-c_maximum_signature_line_length
|
||||
========================================
|
||||
|
||||
.. c:function:: str hello(str name)
|
||||
@@ -0,0 +1 @@
|
||||
cpp_maximum_signature_line_length = len("str hello(str name)") - 1
|
||||
@@ -0,0 +1,4 @@
|
||||
domain-cpp-cpp_maximum_signature_line_length
|
||||
============================================
|
||||
|
||||
.. cpp:function:: str hello(str name)
|
||||
@@ -0,0 +1 @@
|
||||
javascript_maximum_signature_line_length = 1
|
||||
@@ -0,0 +1,6 @@
|
||||
domain-js-maximum_signature_line_length
|
||||
=======================================
|
||||
|
||||
.. js:function:: hello(name)
|
||||
|
||||
.. js:function:: foo([a, [b, ]]c, d[, e, f])
|
||||
@@ -0,0 +1 @@
|
||||
python_maximum_signature_line_length = 1
|
||||
@@ -0,0 +1,6 @@
|
||||
domain-py-maximum_signature_line_length
|
||||
=======================================
|
||||
|
||||
.. py:function:: hello(name: str) -> str
|
||||
|
||||
.. py:function:: foo([a, [b, ]]c, d[, e, f])
|
||||
Reference in New Issue
Block a user