code: def parse_config(app):
      
      try:
          plot_gallery = eval(app.builder.config.plot_gallery)
      except TypeError:
          plot_gallery = bool(app.builder.config.plot_gallery)
      src_dir = app.builder.srcdir
      abort_on_example_error = app.builder.config.abort_on_example_error
      lang = app.builder.config.highlight_language
      gallery_conf = _complete_gallery_conf(
          app.config.sphinx_gallery_conf, src_dir, plot_gallery,
          abort_on_example_error, lang, app.builder.name)
  
      # this assures I can call the config in other places
      app.config.sphinx_gallery_conf = gallery_conf
      app.config.html_static_path.append(glr_path_static())
      return gallery_conf
docs: Process the Sphinx Gallery configuration