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 get_doc_context(
      self, docname: str, body: str, metatags: str
  ) -> dict[str, Any]:
      # no relation links...
      toctree = global_toctree_for_doc(
          self.env, self.config.root_doc, self, collapse=False
      )
      # if there is no toctree, toc is None
      if toctree:
          self.fix_refuris(toctree)
          toc = self.render_partial(toctree)["fragment"]
          display_toc = True
      else:
          toc = ""
          display_toc = False
      return {
          "parents": [],
          "prev": None,
          "next": None,
          "docstitle": None,
          "title": self.config.html_title,
          "meta": None,
          "body": body,
          "metatags": metatags,
          "rellinks": [],
          "sourcename": "",
          "toc": toc,
          "display_toc": display_toc,
      }
  
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 9 for calling the SingleFileHTMLBuilder obj's underlying member method code with example usage: obj.get_doc_context(docname, body, metatags) and returns: dict