module Docs
  class Sinon < UrlScraper
    self.name = 'Sinon'
    self.type = 'sinon'
    self.version = '1.14.0'
    self.base_url = 'http://sinonjs.org/docs/'
    self.links = {
      home: 'http://sinonjs.org/',
      code: 'https://github.com/cjohansen/Sinon.JS'
    }

    html_filters.push 'sinon/clean_html', 'sinon/entries', 'title'

    options[:title] = 'Sinon.JS'
    options[:container] = '.docs'
    options[:skip_links] = true

    options[:attribution] = <<-HTML
      &copy; 2010&ndash;2015 Christian Johansen<br>
      Licensed under the BSD License.
    HTML
  end
end
