class_docstr: Builder that outputs epub3 files.
  
  It creates the metainfo files content.opf, nav.xhtml, toc.ncx, mimetype,
  and META-INF/container.xml. Afterwards, all necessary files are zipped to
  an epub file.
class_docstr_tok: ["Builder","that","outputs","epub3","files",".","It","creates","the","metainfo","files","content.opf",",","nav.xhtml",",","toc.ncx",",","mimetype",",","and","META-INF\/container.xml",".","Afterwards",",","all","necessary","files","are","zipped","to","an","epub","file","."]
docstr: Create a dictionary with all metadata for the nav.xhtml file
  properly escaped.
docstr_tok: ["Create","a","dictionary","with","all","metadata","for","the","nav.xhtml","file","properly","escaped","."]
code: def navigation_doc_metadata(
      self, navlist: list[NavPoint]
  ) -> dict[str, Any]:
      """Create a dictionary with all metadata for the nav.xhtml file
      properly escaped.
      """
      return {
          "lang": html.escape(self.config.epub_language),
          "toc_locale": html.escape(self.guide_titles["toc"]),
          "navlist": navlist,
      }
  
imports: from __future__ import annotations
  import html
  import os
  import re
  import time
  from os import path
  from typing import TYPE_CHECKING, Any, NamedTuple
  from sphinx import package_dir
  from sphinx.builders import _epub_base
  from sphinx.config import ENUM, Config
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.fileutil import copy_asset_file
  from sphinx.util.osutil import make_filename
label_desc: Use image node_id 5 for calling the Epub3Builder obj's underlying member method code with example usage: obj.navigation_doc_metadata(navlist) and returns: dict