mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
It is now possible to use the js:function:: directive for methods.
This commit is contained in:
+3
-3
@@ -553,9 +553,9 @@ The JavaScript domain (name **js**) provides the following directives:
|
||||
|
||||
.. directive:: .. js:function:: name(signature)
|
||||
|
||||
Describe a JavaScript function. If you want to document optional
|
||||
arguments use square brackets as :ref:`documented <signatures>` for Python
|
||||
signatures.
|
||||
Describe a JavaScript function, method or constructor. If you want to
|
||||
document optional arguments use square brackets as
|
||||
:ref:`documented <signatures>` for Python signatures.
|
||||
|
||||
.. directive:: .. js:data:: name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user