code: def html_page_context(app, pagename, templatename, context, doctree):
      """Collect page names for the sitemap as HTML pages are built."""
      site = context["SITEMAP_BASE_URL"]
      version = context["version"]
      app.sitemap_links.add(f"{site}{version}/{pagename}.html")
  
file_path: bokeh/src/bokeh/sphinxext/bokeh_sitemap.py
imports: from __future__ import annotations
  import logging
  from html import escape
  from os.path import join
  from sphinx.errors import SphinxError
  from sphinx.util.display import status_iterator
  from .None import PARALLEL_SAFE
label_desc: Use image node_id 1 for calling a global function with example usage: html_page_context(app, pagename, templatename, context, doctree) without return types