chef.rb 674 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Chef < UrlScraper
  3. self.name = 'Chef'
  4. self.slug = 'chef'
  5. self.type = 'chef'
  6. self.version = '12.5'
  7. self.base_url = 'https://docs.chef.io/'
  8. self.links = {
  9. home: 'https://www.chef.io/',
  10. docs: 'https://docs.chef.io/'
  11. }
  12. html_filters.push 'chef/entries', 'chef/clean_html'
  13. options[:container] = '.bodywrapper'
  14. options[:only_patterns] = [/resource_.*.html/]
  15. options[:skip_patterns] = [/resource_common\.html/]
  16. options[:trailing_slash] = false
  17. options[:attribution] = <<-HTML
  18. &copy; 2015 Chef Software, Inc.<br>
  19. Creative Commons Attribution 3.0 Unported License.
  20. HTML
  21. end
  22. end