module Jekyll::Algolia::FileBrowser

def self.absolute_path(filepath)

file - The Jekyll file to inspect

Public: Return the absolute path of a Jekyll file
def self.absolute_path(filepath)
  pathname = Pathname.new(filepath)
  return pathname.cleanpath.to_s if pathname.absolute?
  File.expand_path(File.join(Configurator.get('source'), filepath))
end