docs: def safe_remove_file(filename, app):
      """
      Removes a given resource file from builder resources.
      Needed mostly during test, if multiple sphinx-build are started.
      During these tests js/cass-files are not cleaned, so a css_file from run A is still registered in run B.
  
      :param filename: filename to remove
      :param app: app object
      :return: None
      """
      data_file = filename
      static_data_file = os.path.join("_static", data_file)
  
      if data_file.split(".")[-1] == "js":
          if hasattr(app.builder, "script_files") and static_data_file in app.builder.script_files:
              app.builder.script_files.remove(static_data_file)
      elif data_file.split(".")[-1] == "css":
          if hasattr(app.builder, "css_files") and static_data_file in app.builder.css_files:
              app.builder.css_files.remove(static_data_file)