module Jekyll::Algolia::Configurator

def self.disable_other_plugins(config)

their values to nil values from here
If they are simply required in Gemfile, then we might need to revert
using .load_overwrites in jekyll-algolia.rb.
:jekyll_plugins group in the Gemfile, we might be able to override them
Note that if other jekyll plugins are defined as part of the
with the indexing
Public: Disable features from other Jekyll plugins that might interfere
def self.disable_other_plugins(config)
  # Disable archive pages from jekyll-archives
  config.delete('jekyll-archives')
  # Disable pagination from jekyll-paginate
  config.delete('paginate')
  # Disable pagination for jekyll-paginate-v2
  config['pagination'] = {} unless config['pagination'].is_a?(Hash)
  config['pagination']['enabled'] = false
  # Disable autopages for jekyll-paginate-v2
  config['autopages'] = {} unless config['autopages'].is_a?(Hash)
  config['autopages']['enabled'] = false
  # Disable tags from jekyll-tagging
  config.delete('tag_page_dir')
  config.delete('tag_page_layout')
  config
end