class_docstr: A StandaloneHTMLBuilder subclass that puts the whole document tree on one
  HTML page.
class_docstr_tok: ["A","StandaloneHTMLBuilder","subclass","that","puts","the","whole","document","tree","on","one","HTML","page","."]
code: def assemble_toc_secnumbers(
      self,
  ) -> dict[str, dict[str, tuple[int, ...]]]:
      # Assemble toc_secnumbers to resolve section numbers on SingleHTML.
      # Merge all secnumbers to single secnumber.
      #
      # Note: current Sphinx has refid confliction in singlehtml mode.
      #       To avoid the problem, it replaces key of secnumbers to
      #       tuple of docname and refid.
      #
      #       There are related codes in inline_all_toctres() and
      #       HTMLTranslter#add_secnumber().
      new_secnumbers: dict[str, tuple[int, ...]] = {}
      for docname, secnums in self.env.toc_secnumbers.items():
          for id, secnum in secnums.items():
              alias = f"{docname}/{id}"
              new_secnumbers[alias] = secnum
  
      return {self.config.root_doc: new_secnumbers}
  
imports: from __future__ import annotations
  from os import path
  from typing import TYPE_CHECKING, Any
  from docutils import nodes
  from sphinx.builders.html import StandaloneHTMLBuilder
  from sphinx.environment.adapters.toctree import global_toctree_for_doc
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.console import darkgreen
  from sphinx.util.display import progress_message
  from sphinx.util.nodes import inline_all_toctrees
label_desc: Use image node_id 7 for calling the SingleFileHTMLBuilder obj's underlying member method code with example usage: obj.assemble_toc_secnumbers() and returns: dict