Python docutils.nodes.title_reference() Examples
The following are 1
code examples of docutils.nodes.title_reference().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
docutils.nodes
, or try the search function
.
Example #1
Source File: __init__.py From edgedb with Apache License 2.0 | 5 votes |
def apply(self): bqs = list(self.document.traverse(d_nodes.block_quote)) if bqs: raise shared.EdgeSphinxExtensionError( f'blockquote found: {bqs[0].asdom().toxml()!r}') trs = list(self.document.traverse(d_nodes.title_reference)) if trs: raise shared.EdgeSphinxExtensionError( f'title reference (single backticks quote) found: ' f'{trs[0].asdom().toxml()!r}; perhaps you wanted to use ' f'double backticks?')