mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
26 lines
712 B
Ruby
26 lines
712 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(options, &block)
|
|
get_npm_version('mocha', options, &block)
|
|
end
|
|
end
|
|
end
|