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.
|
|
|
module Docs
|
|
|
|
class Yarn < UrlScraper
|
|
|
|
self.type = 'simple'
|
|
|
|
self.release = '1.12.1'
|
|
|
|
self.base_url = 'https://yarnpkg.com/en/docs/'
|
|
|
|
self.links = {
|
|
|
|
home: 'https://yarnpkg.com/',
|
|
|
|
code: 'https://github.com/yarnpkg/yarn'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'yarn/entries', 'yarn/clean_html', 'title'
|
|
|
|
|
|
|
|
options[:root_title] = 'Yarn'
|
|
|
|
options[:trailing_slash] = false
|
|
|
|
|
|
|
|
options[:skip] = %w(nightly)
|
|
|
|
options[:skip_patterns] = [/\Aorg\//]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2016–present Yarn Contributors<br>
|
|
|
|
Licensed under the BSD License.
|
|
|
|
HTML
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
get_latest_github_release('yarnpkg', 'yarn', opts)['tag_name'][1..-1]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|