Added a js:data directive/role to describe/refer to global variables/constants.

This commit is contained in:
Daniel Neuhäuser
2010-03-30 19:39:18 +00:00
parent 25b8e87fee
commit 9d53f460ea
3 changed files with 17 additions and 0 deletions

View File

@@ -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