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.
29 lines
658 B
29 lines
658 B
module Docs
|
|
class Composer < UrlScraper
|
|
self.type = 'simple'
|
|
self.release = '2.4.1'
|
|
self.base_url = 'https://getcomposer.org/doc/'
|
|
self.links = {
|
|
home: 'https://getcomposer.org',
|
|
code: 'https://github.com/composer/composer'
|
|
}
|
|
|
|
html_filters.push 'composer/clean_html', 'composer/entries'
|
|
|
|
options[:container] = '#main'
|
|
|
|
options[:skip_patterns] = [
|
|
/^faqs/
|
|
]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© Nils Adermann, Jordi Boggiano<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('composer', 'composer', opts)
|
|
end
|
|
end
|
|
end
|