Docutils node-related utility functions for Sphinx.
Class |
|
A helper class for Node.findall(). |
Function | apply |
Undocumented |
Function | clean |
Like node.astext(), but ignore images. |
Function | copy |
Undocumented |
Function | extract |
Extract translatable messages from a document tree. |
Function | find |
Pick matched pending_xref_condition node up from the pending_xref. |
Function | get |
Return full module dotted path like: 'docutils.nodes.paragraph' |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | inline |
Inline all toctrees in the *tree*. |
Function | is |
Check whether the node is smart-quotable or not. |
Function | is |
Undocumented |
Function | make |
Generate an appropriate node_id for given *prefix* and *term*. |
Function | make |
Shortcut to create a reference node. |
Function | nested |
Version of state.nested_parse() that allows titles and does not require titles to have the same decoration as the calling document. |
Function | process |
Undocumented |
Function | process |
Filter ``only`` nodes which do not match *tags*. |
Function | repr |
return DOM XML representation of the specified node like: '<paragraph translatable="False"><inline classes="versionmodified">New in version...' |
Function | set |
Undocumented |
Function | set |
Undocumented |
Function | split |
Split role content into title and target, if given. |
Function | traverse |
Undocumented |
Function | traverse |
Traverse translatable index node from a document tree. |
Constant | IGNORED |
Undocumented |
Constant | IMAGE |
Undocumented |
Constant | LITERAL |
Undocumented |
Constant | NON |
Undocumented |
Variable | explicit |
Undocumented |
Variable | indextypes |
Undocumented |
Variable | logger |
Undocumented |
Function | _copy |
Monkey-patch ```nodes.Element.copy``` to not copy the ``_document`` attribute. |
Function | _make |
Convert `string` into an identifier and return it. |
Variable | _non |
Undocumented |
Variable | _non |
Undocumented |
Variable | _non |
Undocumented |
Variable | _non |
Undocumented |
Pick matched pending_xref_condition node up from the pending_xref.
Parameters | |
node:addnodes.pending_xref | Undocumented |
condition:str | Undocumented |
Returns | |
Element|None | Undocumented |
Inline all toctrees in the *tree*. Record all docnames in *docnameset*, and output docnames with *colorfunc*.
Parameters | |
builder:Builder | Undocumented |
docnameset:set[ | Undocumented |
docname:str | Undocumented |
tree:nodes.document | Undocumented |
colorfunc:Callable | Undocumented |
traversed:list[ | Undocumented |
Returns | |
nodes.document | Undocumented |
Generate an appropriate node_id for given *prefix* and *term*.
Parameters | |
env:BuildEnvironment | Undocumented |
document:nodes.document | Undocumented |
prefix:str | Undocumented |
term:str|None | Undocumented |
Returns | |
str | Undocumented |
Version of state.nested_parse() that allows titles and does not require titles to have the same decoration as the calling document. This is useful when the parsed content comes from a completely different context, such as docstrings.
Parameters | |
state:Any | Undocumented |
content:StringList | Undocumented |
node:Node | Undocumented |
Returns | |
str | Undocumented |
return DOM XML representation of the specified node like: '<paragraph translatable="False"><inline classes="versionmodified">New in version...' :param nodes.Node node: target node :param int length: length of return value to be striped. if false-value is specified, repr_domxml returns full of DOM XML representation. :return: DOM XML representation
Parameters | |
node:Node | Undocumented |
length:int | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|
Convert `string` into an identifier and return it. This function is a modified version of ``docutils.nodes.make_id()`` of docutils-0.16. Changes: * Allow to use capital alphabet characters * Allow to use dots (".") and underscores ("_") for an identifier without a leading character. # Author: David Goodger <goodger@python.org> # Maintainer: docutils-develop@lists.sourceforge.net # Copyright: This module has been placed in the public domain.
Parameters | |
string:str | Undocumented |
Returns | |
str | Undocumented |