devdocs/lib/docs/scrapers/jasmine.rb
2017-10-29 14:11:09 -04:00

21 lines
547 B
Ruby

module Docs
class Jasmine < UrlScraper
self.type = 'jasmine'
self.release = '2.8.0'
self.base_url = 'https://jasmine.github.io/api/2.8/'
self.root_path = 'index.html'
self.links = {
home: 'https://jasmine.github.io/',
code: 'https://github.com/jasmine/jasmine'
}
html_filters.push 'jasmine/clean_html', 'jasmine/entries'
options[:container] = '.main-content'
options[:attribution] = <<-HTML
&copy; 2008&ndash;2017 Pivotal Labs<br>
Licensed under the MIT License.
HTML
end
end