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.
28 lines
674 B
28 lines
674 B
9 years ago
|
module Docs
|
||
|
class Chef < UrlScraper
|
||
|
self.name = 'Chef'
|
||
|
self.slug = 'chef'
|
||
|
self.type = 'chef'
|
||
|
self.version = '12.5'
|
||
|
self.base_url = 'https://docs.chef.io/'
|
||
|
self.links = {
|
||
|
home: 'https://www.chef.io/',
|
||
|
docs: 'https://docs.chef.io/'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'chef/entries', 'chef/clean_html'
|
||
|
|
||
|
options[:container] = '.bodywrapper'
|
||
|
|
||
|
options[:only_patterns] = [/resource_.*.html/]
|
||
|
options[:skip_patterns] = [/resource_common\.html/]
|
||
|
|
||
|
options[:trailing_slash] = false
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2015 Chef Software, Inc.<br>
|
||
|
Creative Commons Attribution 3.0 Unported License.
|
||
|
HTML
|
||
|
end
|
||
|
end
|