Lines Matching refs:app
129 def setup(app): argument
131 app.connect('builder-inited', setupTools)
134 app.add_directive("kernel-image", KernelImage)
135 app.add_node(kernel_image,
143 app.add_directive("kernel-figure", KernelFigure)
144 app.add_node(kernel_figure,
152 app.add_directive('kernel-render', KernelRender)
153 app.add_node(kernel_render,
160 app.connect('doctree-read', add_kernel_figure_to_std_domain)
169 def setupTools(app): argument
176 kernellog.verbose(app, "kfigure: check installed tools ...")
182 kernellog.verbose(app, "use dot(1) from: " + dot_cmd)
184 kernellog.warn(app, "dot(1) not found, for better output quality install "
187 kernellog.verbose(app, "use convert(1) from: " + convert_cmd)
189 kernellog.warn(app,
213 app = translator.builder.app
225 kernellog.verbose(app, 'assert best format for: ' + img_node['uri'])
230 kernellog.verbose(app,
258 kernellog.verbose(app,
272 kernellog.verbose(app,
280 kernellog.verbose(app, 'convert DOT to: {out}/' + _name)
281 ok = dot2format(app, src_fname, dst_fname)
284 kernellog.verbose(app, 'convert SVG to: {out}/' + _name)
285 ok = svg2pdf(app, src_fname, dst_fname)
291 def dot2format(app, dot_fname, out_fname): argument
313 kernellog.warn(app,
317 def svg2pdf(app, svg_fname, pdf_fname): argument
331 kernellog.warn(app, "Error #%d when calling: %s" % (exit_code, " ".join(cmd)))
421 app = self.builder.app
424 kernellog.verbose(app, 'visit kernel-render node lang: "%s"' % (srclang))
428 kernellog.warn(app, 'kernel-render: "%s" unknown / include raw.' % (srclang))
432 kernellog.verbose(app, "dot from graphviz not available / include raw.")
528 def add_kernel_figure_to_std_domain(app, doctree): argument
539 std = app.env.domains["std"]
540 docname = app.env.docname