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:
@@ -78,6 +78,8 @@ Javascript items
|
||||
|
||||
.. js:function:: foo()
|
||||
|
||||
.. js:data:: bar
|
||||
|
||||
|
||||
References
|
||||
==========
|
||||
@@ -93,6 +95,8 @@ Without target: :c:func:`CFunction`. :c:func:`!malloc`.
|
||||
:js:func:`foo()`
|
||||
:js:func:`foo`
|
||||
|
||||
:js:data:`bar`
|
||||
|
||||
|
||||
Others
|
||||
======
|
||||
|
||||
Reference in New Issue
Block a user