Lines Matching full:figure
4 scalable figure and image handling
14 handling from the author's POV. Directives like ``kernel-figure`` implement
21 * ``.. kernel-figure``: for figure handling / a ``.. figure::`` replacement
67 # patches.Figure only landed in Sphinx 1.4
68 from sphinx.directives.patches import Figure # pylint: disable=C0413
70 Figure = images.Figure
144 # figure handling
145 app.add_directive("kernel-figure", KernelFigure)
470 # figure handling
481 class kernel_figure(nodes.figure):
482 """Node for ``kernel-figure`` directive."""
484 class KernelFigure(Figure):
487 Earns everything from ``.. figure::`` directive, except *remote URI* and
488 *glob* pattern. The KernelFigure wraps a figure node into a kernel_figure
499 result = Figure.run(self)
503 # wrap figure node into a kernel_figure node / see visitors
560 class KernelRender(Figure):
564 *figure* directive, plus option ``caption``. If ``caption`` has a
565 value, a figure node with the *caption* is inserted. If not, a image node is
577 # earn options from 'figure'
578 option_spec = Figure.option_spec.copy()
617 figure_node = nodes.figure('', node)
627 """Add kernel-figure anchors to 'std' domain.
630 the caption (label) of ``kernel-figure`` directive (it only knows about
631 standard nodes, e.g. table, figure etc.). Without any additional handling
634 This handle adds labels of kernel-figure to the 'std' domain labels.