def write_file(path, content)
      Jekyll.logger.debug "WRITING:", path
      path = sanitized_path(path)
      FileUtils.mkdir_p File.dirname(path)
      File.open(path, "wb") do |file|
        file.write(content)
      end
      # we should fully process in dev mode for tests to pass
      if ENV["RACK_ENV"] == "production"
        site.read
      else
        site.process
      end
    end
def write_file(path, content)
      Jekyll.logger.debug "WRITING:", path
      path = sanitized_path(path)
      FileUtils.mkdir_p File.dirname(path)
      File.open(path, "wb") do |file|
        file.write(content)
      end
      # we should fully process in dev mode for tests to pass
      if ENV["RACK_ENV"] == "production"
        site.read
      else
        site.process
      end
    end
Write a file to disk with the given content