class Jekyll::Algolia::Site

def keep_only_indexable_files

internals
Public: Removing non-indexable Pages, Posts and Documents from the
def keep_only_indexable_files
  @original_site_files = {
    pages: @pages,
    collections: @collections,
    static_files: @static_files
  }
  @pages = indexable_list(@pages)
  # Applying to each collections
  @collections.each_value do |collection|
    collection.docs = indexable_list(collection.docs)
  end
  # Remove all static files
  @static_files = []
end