parameters: (
      self: HTMLTranslator, node: inheritance_diagram
  )
docstring: Output the graph for HTML.  This will insert a PNG with clickable
      image map.
docstring_summary: Output the graph for HTML.  This will insert a PNG with clickable
      image map.
docstring_tokens: Output the graph for HTML . This will insert a PNG with clickable image map .
function: def html_visit_mermaid_inheritance(
      self: HTMLTranslator, node: inheritance_diagram
  ) -> None:
      """
      Output the graph for HTML.  This will insert a PNG with clickable
      image map.
      """
      graph = node["graph"]
  
      graph_hash = get_graph_hash(node)
      name = "inheritance%s" % graph_hash
  
      # Create a mapping from fully-qualified class names to URLs.
      mermaid_output_format = self.builder.env.config.mermaid_output_format.upper()
      current_filename = self.builder.current_docname + self.builder.out_suffix
      urls = {}
      pending_xrefs = cast(Iterable[addnodes.pending_xref], node)
      for child in pending_xrefs:
          if child.get("refuri") is not None:
              if mermaid_output_format == "SVG":
                  urls[child["reftitle"]] = "../" + child.get("refuri")
              else:
                  urls[child["reftitle"]] = child.get("refuri")
          elif child.get("refid") is not None:
              if mermaid_output_format == "SVG":
                  urls[child["reftitle"]] = (
                      "../" + current_filename + "#" + child.get("refid")
                  )
              else:
                  urls[child["reftitle"]] = "#" + child.get("refid")
      dotcode = graph.generate_dot(name, urls, env=self.builder.env)
      render_mm_html(
          self,
          node,
          dotcode,
          {},
          "inheritance",
          "inheritance",
          alt="Inheritance diagram of " + node["content"],
      )
      raise nodes.SkipNode
function_tokens: def html_visit_mermaid_inheritance ( self : HTMLTranslator , node : inheritance_diagram ) -> None : graph = node [ "graph" ] graph_hash = get_graph_hash ( node ) name = "inheritance%s" % graph_hash # Create a mapping from fully-qualified class names to URLs. mermaid_output_format = self . builder . env . config . mermaid_output_format . upper ( ) current_filename = self . builder . current_docname + self . builder . out_suffix urls = { } pending_xrefs = cast ( Iterable [ addnodes . pending_xref ] , node ) for child in pending_xrefs : if child . get ( "refuri" ) is not None : if mermaid_output_format == "SVG" : urls [ child [ "reftitle" ] ] = "../" + child . get ( "refuri" ) else : urls [ child [ "reftitle" ] ] = child . get ( "refuri" ) elif child . get ( "refid" ) is not None : if mermaid_output_format == "SVG" : urls [ child [ "reftitle" ] ] = ( "../" + current_filename + "#" + child . get ( "refid" ) ) else : urls [ child [ "reftitle" ] ] = "#" + child . get ( "refid" ) dotcode = graph . generate_dot ( name , urls , env = self . builder . env ) render_mm_html ( self , node , dotcode , { } , "inheritance" , "inheritance" , alt = "Inheritance diagram of " + node [ "content" ] , ) raise nodes . SkipNode