MCPcopy Create free account
hub / github.com/SpartanJ/eepp / create_ref_node

Function create_ref_node

docs/doxyrest/sphinx/doxyrest.py:110–124  ·  view source on GitHub ↗
(raw_text, text, target)

Source from the content-addressed store, hash-verified

108 raise nodes.SkipNode
109
110def create_ref_node(raw_text, text, target):
111 if not target:
112 return nodes.Text(text, text)
113
114 if url_re_prog.match(target):
115 return nodes.reference(raw_text, text, refuri=target)
116
117 node = addnodes.pending_xref(raw_text)
118 node['reftype'] = 'ref'
119 node['refdomain'] = 'std'
120 node['reftarget'] = target
121 node['refwarn'] = True
122 node['refexplicit'] = True
123 node += nodes.Text(text, text)
124 return node
125
126def create_target_node(raw_text, text, target, highlight_language, lineno, document, extra_classes=[]):
127 node = nodes.target(raw_text, '')

Callers 3

runMethod · 0.85
applyMethod · 0.85
cref_roleFunction · 0.85

Calls 2

TextMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected