mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Added a js:data directive/role to describe/refer to global variables/constants.
This commit is contained in:
@@ -557,6 +557,11 @@ The JavaScript domain (name **js**) provides the following directives:
|
||||
arguments use square brackets as :ref:`documented <signatures>` for Python
|
||||
signatures.
|
||||
|
||||
.. directive:: .. js:data:: name
|
||||
|
||||
Describe a global variable or constant.
|
||||
|
||||
These roles are provided to refer to the described objects:
|
||||
|
||||
.. role:: js:func
|
||||
js:data
|
||||
|
||||
Reference in New Issue
Block a user