mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
26 lines
690 B
Ruby
26 lines
690 B
Ruby
module Docs
|
|
class Mocha < UrlScraper
|
|
self.type = 'simple'
|
|
self.release = '5.2.0'
|
|
self.base_url = 'https://mochajs.org/'
|
|
self.links = {
|
|
home: 'https://mochajs.org/',
|
|
code: 'https://github.com/mochajs/mocha'
|
|
}
|
|
|
|
html_filters.push 'mocha/clean_html', 'mocha/entries', 'title'
|
|
|
|
options[:container] = '#content'
|
|
options[:title] = 'mocha'
|
|
options[:skip_links] = true
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2011–2018 JS Foundation and contributors<br>
|
|
Licensed under the Creative Commons Attribution 4.0 International License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_npm_version('mocha', opts)
|
|
end
|
|
end
|
|
end
|