Lines Matching full:node
102 node = nodes.literal_block(data, data)
103 return node
114 def pass_handle(self, node): # pylint: disable=W0613 argument
203 """Convert a image node for the builder.
332 def visit_kernel_image(self, node): # pylint: disable=W0613 argument
333 """Visitor of the ``kernel_image`` Node.
335 Handles the ``image`` child-node with the ``convert_image(...)``.
337 img_node = node[0]
341 """Node for ``kernel-image`` directive."""
348 *glob* pattern. The KernelImage wraps a image node into a
349 kernel_image node. See ``visit_kernel_image``.
362 # wrap image node into a kernel_image node / see visitors
363 node = kernel_image('', image_node)
364 return [node]
369 def visit_kernel_figure(self, node): # pylint: disable=W0613 argument
370 """Visitor of the ``kernel_figure`` Node.
372 Handles the ``image`` child-node with the ``convert_image(...)``.
374 img_node = node[0][0]
378 """Node for ``kernel-figure`` directive."""
384 *glob* pattern. The KernelFigure wraps a figure node into a kernel_figure
385 node. See ``visit_kernel_figure``.
399 # wrap figure node into a kernel_figure node / see visitors
400 node = kernel_figure('', figure_node)
401 return [node]
407 def visit_kernel_render(self, node): argument
408 """Visitor of the ``kernel_render`` Node.
411 node into a file and replace the ``literal_block`` node with a new created
412 ``image`` node, pointing to the saved markup file. Afterwards, handle the
413 image child-node with the ``convert_image(...)``.
416 srclang = node.get('srclang')
418 app.verbose('visit kernel-render node lang: "%s"' % (srclang))
429 literal_block = node[0]
432 hashobj = code.encode('utf-8') # str(node.attributes)
443 img_node = nodes.image(node.rawsource, **node.attributes)
453 """Node for ``kernel-render`` directive."""
461 value, a figure node with the *caption* is inserted. If not, a image node is
465 literal_block node and wraps it into a kernel_render node. See
496 node = kernel_render()
497 node['alt'] = self.options.get('alt','')
498 node['srclang'] = srclang
500 node += literal_node
513 figure_node = nodes.figure('', node)
518 node = figure_node
520 return node
543 node = doctree.ids[labelid]
545 if node.tagname == 'kernel_figure':
546 for n in node.next_node():