Example #1
0
def texinfo_visit_inheritance_diagram(self, node):
    """
    Output the graph for Texinfo.  This will insert a PNG.
    """
    graph = node['graph']

    graph_hash = get_graph_hash(node)
    name = 'inheritance%s' % graph_hash

    dotcode = graph.generate_dot(name, env=self.builder.env,
                                 graph_attrs={'size': '"6.0,6.0"'})
    render_dot_texinfo(self, node, dotcode, [], 'inheritance')
    raise nodes.SkipNode
Example #2
0
def texinfo_visit_inheritance_diagram(self: TexinfoTranslator,
                                      node: inheritance_diagram) -> None:
    """
    Output the graph for Texinfo.  This will insert a PNG.
    """
    graph = node["graph"]

    graph_hash = get_graph_hash(node)
    name = "inheritance%s" % graph_hash

    dotcode = graph.generate_dot(name,
                                 env=self.builder.env,
                                 graph_attrs={"size": '"6.0,6.0"'})
    render_dot_texinfo(self, node, dotcode, {}, "inheritance")
    raise nodes.SkipNode