class StandardDomain(Domain):
Method | __init__ |
Undocumented |
Method | _note_term |
Note a term for cross reference. |
Method | _resolve_doc_xref |
Undocumented |
Method | _resolve_keyword_xref |
Undocumented |
Method | _resolve_numref_xref |
Undocumented |
Method | _resolve_obj_xref |
Undocumented |
Method | _resolve_option_xref |
Undocumented |
Method | _resolve_ref_xref |
Undocumented |
Method | _resolve_term_xref |
Undocumented |
Method | add_object |
Undocumented |
Method | add_program_option |
Undocumented |
Method | build_reference_node |
Undocumented |
Method | clear_doc |
Remove traces of a document in the domain-specific inventories. |
Method | get_enumerable_node_type |
Get type of enumerable nodes. |
Method | get_fignumber |
Undocumented |
Method | get_full_qualified_name |
Return full qualified name for given node. |
Method | get_numfig_title |
Get the title of enumerable nodes to refer them using its title |
Method | get_objects |
Return an iterable of "object descriptions". |
Method | get_type_name |
Return full name for given ObjType. |
Method | is_enumerable_node |
Undocumented |
Method | merge_domaindata |
Merge in data regarding docnames from a different domaindata inventory (coming from a subprocess in parallel builds). |
Method | note_hyperlink_target |
Add a hyperlink target for cross reference. |
Method | note_object |
Note a generic object for cross reference. |
Method | process_doc |
Process a document after it is read by the environment. |
Method | resolve_any_xref |
Resolve the pending_xref node with the given target. |
Method | resolve_xref |
Resolve the pending_xref node with the given typ and target. |
Class Variable | dangling_warnings |
Undocumented |
Class Variable | directives |
Undocumented |
Class Variable | initial_data |
Undocumented |
Class Variable | label |
Undocumented |
Class Variable | name |
Undocumented |
Class Variable | object_types |
Undocumented |
Class Variable | roles |
Undocumented |
Instance Variable | enumerable_nodes |
Undocumented |
Property | _terms |
Note Will be removed soon. internal use only. |
Property | anonlabels |
Undocumented |
Property | labels |
Undocumented |
Property | objects |
Undocumented |
Property | progoptions |
Undocumented |
Inherited from Domain
:
Method | add_object_type |
Add an object type. |
Method | check_consistency |
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_field_xref |
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_version |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | indices |
Undocumented |
Instance Variable | _directive_cache |
Undocumented |
Instance Variable | _role2type |
Undocumented |
Instance Variable | _role_cache |
Undocumented |
Instance Variable | _type2role |
Undocumented |
Instance Variable | env |
Undocumented |
Instance Variable | objtypes_for_role |
Undocumented |
Instance Variable | role_for_objtype |
Undocumented |
sphinx.domains.Domain.__init__
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
Note a term for cross reference.
Note
Will be removed soon. internal use only.
Parameters | |
term:str | Undocumented |
labelid:str | Undocumented |
location:Any | 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 | |
Optional[ | 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 | |
Optional[ | 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 | |
Optional[ | 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 | |
Optional[ | 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 | |
Optional[ | 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 | |
Optional[ | 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 | Undocumented |
Undocumented
Parameters | |
objtype:str | Undocumented |
name:str | Undocumented |
docname:str | Undocumented |
labelid:str | Undocumented |
Undocumented
Parameters | |
program:str | Undocumented |
name:str | Undocumented |
docname:str | Undocumented |
labelid:str | Undocumented |
Undocumented
Parameters | |
fromdocname:str | Undocumented |
builder:Builder | Undocumented |
docname:str | Undocumented |
labelid:str | Undocumented |
sectname:str | Undocumented |
rolename:str | Undocumented |
**options:Any | Undocumented |
Returns | |
Element | Undocumented |
sphinx.domains.Domain.clear_doc
Parameters | |
docname:str | Undocumented |
Parameters | |
node:Node | Undocumented |
Returns | |
Optional[ | Undocumented |
Undocumented
Parameters | |
env:BuildEnvironment | Undocumented |
builder:Builder | Undocumented |
figtype:str | Undocumented |
docname:str | Undocumented |
target_node:Element | Undocumented |
Returns | |
Tuple[ | Undocumented |
Parameters | |
node:Element | Undocumented |
Returns | |
Optional[ | Undocumented |
Parameters | |
node:Node | Undocumented |
Returns | |
Optional[ | Undocumented |
sphinx.domains.Domain.get_objects
Return an iterable of "object descriptions".
Object descriptions are tuples with six items:
How "important" the object is (determines placement in search results). One of:
Returns | |
Iterator[ | Undocumented |
sphinx.domains.Domain.get_type_name
Parameters | |
type:ObjType | Undocumented |
primary:bool | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
node:Node | Undocumented |
Returns | |
bool | Undocumented |
sphinx.domains.Domain.merge_domaindata
Parameters | |
docnames:List[ | Undocumented |
otherdata:Dict | 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.
Parameters | |
name:str | Undocumented |
docname:str | Undocumented |
node_id:str | Undocumented |
title:str | Undocumented |
Note a generic object for cross reference.
Parameters | |
objtype:str | Undocumented |
name:str | Undocumented |
labelid:str | Undocumented |
location:Any | Undocumented |
sphinx.domains.Domain.process_doc
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
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 resolve_xref
would return.
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 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 | |
Optional[ | Undocumented |
Dict[ str, Union[ RoleFunction, XRefRole]]
=
sphinx.domains.Domain.roles
Undocumented