The domain name is js
. See https://www.sphinx-doc.org/en/master/usage/domains/javascript.html.
The .. js:function::
directive, showing a JavaScript function or method.
href (string()
) – An URI to the location of the resource.
callback – Gets called with the object.
errback – Gets called in case the request fails. And a lot of other text so we need multiple lines.
SomeError()
– For whatever reason in that case.
Something.
The .. js:method::
directive (an alias for .. js:function::
,
showing a function that is implemented as a method on a class object.
The .. js:class::
directive, showing a JavaScript object.
name (string()
) – A name
num (number()
) – An optional number
The .. js:data::
directive, showing a global variable or constant.
The .. js:attribute::
directive, showing an attribute name of object.