module Jekyll::Algolia::Indexer
def self.warn_of_manual_dashboard_editing(changed_keys)
get overwritten by the pluging. We can't prevent that, but we can warn
When users change some settings in their dashboard, those settings might
their dashboard
Public: Warn users that they have some settings manually configured in
def self.warn_of_manual_dashboard_editing(changed_keys) # Transform the hash into readable YAML yaml_lines = changed_keys .to_yaml(indentation: 2) .split("\n")[1..-1] yaml_lines.map! do |line| line = line.gsub(/^ */) { |spaces| ' ' * spaces.length } line = line.gsub('- ', ' - ') "W: #{line}" end Logger.known_message( 'settings_manually_edited', settings: yaml_lines.join("\n") ) end