docs: def update_configuration(app):
      """Update parameters which are dependent on information from the
      project-specific conf.py (including its location on the filesystem)"""
      config = app.config
      project = config.project
      config_dir = app.env.srcdir
      sys.path.insert(0, os.path.join(config_dir, '..'))
  
      config.html_theme_path.append(os.path.relpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'themes'), config_dir))
      if not config.html_logo:
          config.html_logo = os.path.relpath(os.path.join(STATIC_PATH, 'safari_logo.png'), config_dir)
      if not config.html_favicon:
          config.html_favicon = os.path.relpath(os.path.join(STATIC_PATH, 'favicon.ico'), config_dir)
      config.html_static_path.append(os.path.relpath(STATIC_PATH, config_dir))
      if not config.htmlhelp_basename:
          config.htmlhelp_basename = '%sdoc' % project
      if not config.latex_logo:
          config.latex_logo = os.path.relpath(os.path.join(STATIC_PATH, 'safari_logo.png'), config_dir)
      if not config.epub_title:
          config.epub_title = u'%s Documentation' % project
      if not config.epub_publisher:
          config.epub_publisher = config.epub_author
      if not config.epub_copyright:
          config.epub_copyright = config.copyright
  
      config.latex_documents.append(
          (master_doc,
           '%s.tex' % project,
           u'%s Documentation' % project,
           u'Safari',
           'manual'))
      config.man_pages.append(
          (master_doc,
           project,
           u'%s Documentation' % project,
           [u'Safari'],
           1))
      config.texinfo_documents.append(
          (master_doc,
           project,
           u'%s Documentation' % project,
           u'Safari',
           project,
           'One line description of project.',
           'Miscellaneous'))
  
      # Parse the version number from setup.py without actually running setup()
      with open(os.path.join(config_dir, '..', 'setup.py'), 'r') as f:
          content = f.read()
          match = re.search(r"version\s*=\s*['\"]([\d\.]+)['\"]", content)
          if match:
              config.version = match.group(1)
              config.release = config.version