class Jekyll::Configuration
def read_config_files(files)
Returns the full configuration, with the defaults overridden by the values in the
files - the list of configuration file paths
Public: Read in a list of configuration files and merge with this hash
def read_config_files(files) configuration = clone begin files.each do |config_file| next if config_file.nil? || config_file.empty? new_config = read_config_file(config_file) configuration = Utils.deep_merge_hashes(configuration, new_config) end rescue ArgumentError => e Jekyll.logger.warn "WARNING:", "Error reading configuration. Using defaults (and options)." warn e end configuration.validate.add_default_collections end