docs: def swap_yaml_string(file_path, swaps):
      """
      Swap a string in a yaml file without touching the existing formatting.
      """
      original_file = file_to_string(file_path)
      new_file = original_file
      changed = False
  
      for item in swaps:
          match = re.compile(r'(?<={0}: )(["\']?)(.*)\1'.format(item[0]),
                             re.MULTILINE)
  
          new_file = re.sub(match, item[1], new_file)
  
      if new_file != original_file:
          changed = True
  
      string_to_file(file_path, new_file)
  
      return (new_file, changed)