mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
786 B
37 lines
786 B
module Docs
|
|
class Jest < UrlScraper
|
|
include MultipleBaseUrls
|
|
self.type = 'simple'
|
|
self.release = '29.0.1'
|
|
|
|
self.base_urls = [
|
|
'https://jestjs.io/docs/',
|
|
'https://jestjs.io/docs/expect'
|
|
]
|
|
|
|
self.root_path = 'getting-started'
|
|
self.links = {
|
|
home: 'https://jestjs.io/',
|
|
code: 'https://github.com/facebook/jest'
|
|
}
|
|
|
|
html_filters.push 'jest/entries', 'jest/clean_html'
|
|
|
|
options[:skip_patterns] = [
|
|
/^next/,
|
|
/upgrading-to-/,
|
|
/\d+\.[x\d]/ # avoid deprecated versions
|
|
]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2022 Facebook, Inc.<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
doc = get_latest_github_release('facebook', 'jest', opts)
|
|
end
|
|
|
|
end
|
|
end
|