text: #!/usr/bin/env python
  #
  # Sphinx configuration file
  # see metadata.yaml in this repo to update document-specific metadata
  
  import os
  from documenteer.sphinxconfig.technoteconf import configure_technote
  import lsst_dd_rtd_theme
  html_theme = "lsst_dd_rtd_theme"
  html_theme_path = [lsst_dd_rtd_theme.get_html_theme_path()]
  
  # Ingest settings from metadata.yaml and use documenteer's configure_technote()
  # to build a Sphinx configuration that is injected into this script's global
  # namespace.
  metadata_path = os.path.join(os.path.dirname(__file__), 'metadata.yaml')
  with open(metadata_path, 'r') as f:
      confs = configure_technote(f)
  g = globals()
  g.update(confs)
  
  # Add intersphinx inventories as needed
  # http://www.sphinx-doc.org/en/stable/ext/intersphinx.html
  # Example:
  #
  #     intersphinx_mapping['python'] = ('https://docs.python.org/3', None)
  