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.
devdocs/lib/docs/scrapers/composer.rb

28 lines
585 B

6 years ago
module Docs
class Composer < UrlScraper
self.name = 'Composer'
self.type = 'composer'
self.links = {
home: 'https://getcomposer.org',
code: 'https://github.com/composer/composer'
}
html_filters.push 'composer/clean_html', 'composer/entries'
self.release = '1.7.2'
self.base_url = 'https://getcomposer.org/doc/'
options[:container] = '#main'
options[:skip_patterns] = [
/^faqs/
]
options[:attribution] = <<-HTML
&copy; Nils Adermann, Jordi Boggiano<br>
Licensed under the MIT License.
HTML
end
end