Domain for all objects that don't fit into another domain or are added via the application interface.
Method | __init__ |
Undocumented |
Method | add |
Undocumented |
Method | build |
Undocumented |
Method | clear |
Remove traces of a document in the domain-specific inventories. |
Method | get |
Get type of enumerable nodes. |
Method | get |
Undocumented |
Method | get |
Return full qualified name for given node. |
Method | get |
Get the title of enumerable nodes to refer them using its title |
Method | get |
Return an iterable of "object descriptions". |
Method | get |
Return full name for given ObjType. |
Method | is |
Undocumented |
Method | merge |
Merge in data regarding *docnames* from a different domaindata inventory (coming from a subprocess in parallel builds). |
Method | note |
Add a hyperlink target for cross reference. |
Method | note |
Note a generic object for cross reference. |
Method | process |
Process a document after it is read by the environment. |
Method | resolve |
Resolve the pending_xref *node* with the given *target*. |
Method | resolve |
Resolve the pending_xref *node* with the given *typ* and *target*. |
Constant | initial |
Undocumented |
Class Variable | dangling |
Undocumented |
Class Variable | directives |
Undocumented |
Class Variable | label |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | object |
Undocumented |
Class Variable | roles |
Undocumented |
Instance Variable | enumerable |
Undocumented |
Property | anonlabels |
Undocumented |
Property | labels |
Undocumented |
Property | objects |
Undocumented |
Property | progoptions |
Undocumented |
Method | _note |
Note a term for cross reference. |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Method | _resolve |
Undocumented |
Class Variable | _virtual |
Undocumented |
Property | _terms |
.. note:: Will be removed soon. internal use only. |
Inherited from Domain
:
Method | add |
Add an object type. |
Method | check |
Do consistency checks (**experimental**). |
Method | directive |
Return a directive adapter class that always gives the registered directive its full name ('domain:name') as ``self.name``. |
Method | process |
Process a pending xref created in a doc field. For example, attach information about the current scope. |
Method | role |
Return a role adapter function that always gives the registered role its full name ('domain:name') as the first argument. |
Method | setup |
Set up domain object. |
Class Variable | data |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | env |
Undocumented |
Instance Variable | indices |
Undocumented |
Instance Variable | objtypes |
Undocumented |
Instance Variable | role |
Undocumented |
Instance Variable | _directive |
Undocumented |
Instance Variable | _role2type |
Undocumented |
Instance Variable | _role |
Undocumented |
Instance Variable | _type2role |
Undocumented |
sphinx.domains.Domain.clear_doc
Remove traces of a document in the domain-specific inventories.
Parameters | |
docname:str | Undocumented |
sphinx.domains.Domain.get_objects
Return an iterable of "object descriptions". Object descriptions are tuples with six items: ``name`` Fully qualified name. ``dispname`` Name to display when searching/linking. ``type`` Object type, a key in ``self.object_types``. ``docname`` The document where it is to be found. ``anchor`` The anchor name for the object. ``priority`` How "important" the object is (determines placement in search results). One of: ``1`` Default priority (placed before full-text matches). ``0`` Object is important (placed before default-priority objects). ``2`` Object is unimportant (placed after full-text matches). ``-1`` Object should not show up in search at all.
Returns | |
Iterator[ | Undocumented |
Add a hyperlink target for cross reference. .. warning:: This is only for internal use. Please don't use this from your extension. ``document.note_explicit_target()`` or ``note_implicit_target()`` are recommended to add a hyperlink target to the document. This only adds a hyperlink target to the StandardDomain. And this does not add a node_id to node. Therefore, it is very fragile to calling this without understanding hyperlink target framework in both docutils and Sphinx. .. versionadded:: 3.0
Parameters | |
name:str | Undocumented |
docname:str | Undocumented |
nodestr | Undocumented |
title:str | Undocumented |
sphinx.domains.Domain.process_doc
Process a document after it is read by the environment.
Parameters | |
env:BuildEnvironment | Undocumented |
docname:str | Undocumented |
document:nodes.document | Undocumented |
sphinx.domains.Domain.resolve_any_xref
Resolve the pending_xref *node* with the given *target*. The reference comes from an "any" or similar role, which means that we don't know the type. Otherwise, the arguments are the same as for :meth:`resolve_xref`. The method must return a list (potentially empty) of tuples ``('domain:role', newnode)``, where ``'domain:role'`` is the name of a role that could have created the same reference, e.g. ``'py:func'``. ``newnode`` is what :meth:`resolve_xref` would return. .. versionadded:: 1.3
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
list[ | Undocumented |
sphinx.domains.Domain.resolve_xref
Resolve the pending_xref *node* with the given *typ* and *target*. This method should return a new node, to replace the xref node, containing the *contnode* which is the markup content of the cross-reference. If no resolution can be found, None can be returned; the xref node will then given to the :event:`missing-reference` event, and if that yields no resolution, replaced by *contnode*. The method can also raise :exc:`sphinx.environment.NoUri` to suppress the :event:`missing-reference` event being emitted.
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
sphinx.domains.Domain.initial_data
Undocumented
Value |
|
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
typ:str | Undocumented |
target:str | Undocumented |
node:pending_xref | Undocumented |
contnode:Element | Undocumented |
Returns | |
Element|None | Undocumented |