mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
25 lines
649 B
Ruby
25 lines
649 B
Ruby
module Docs
|
|
class Jasmine < UrlScraper
|
|
self.type = 'jasmine'
|
|
self.release = '4.0.0'
|
|
self.base_url = 'https://jasmine.github.io/api/4.0/'
|
|
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
|
|
© 2008–2019 Pivotal Labs<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('jasmine', 'jasmine', opts)
|
|
end
|
|
end
|
|
end
|