module Jekyll::Algolia

def self.config

accessible
All other classes will need access to this config, so we make it publicly

Public: Get access to the Jekyll config
def self.config
  @config
end

def self.init(config = {})

monkey-patching its `write` method and building it.
The gist of the plugin works by instanciating a Jekyll site,

options passed on the command line)
config - A hash of Jekyll config option (merge of _config.yml options and

Public: Init the Algolia module
def self.init(config = {})
  @config = config
  @site = Jekyll::Algolia::Site.new(@config)
  exit 1 unless Configurator.assert_valid_credentials
  self
end

def self.run

calling .process
Note: The internal list of files to be processed will only be created when

instead.
build` except that our monkey patched `write` method will be called
Actually "process" the site, which will acts just like a regular `jekyll

Public: Run the main Algolia module
def self.run
  @site.process
end

def self.site

Tests will need access to the inner Jekyll website so we expose it here

Public: Get access to the Jekyll site
def self.site
  @site
end