nginx.rb 573 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Nginx < UrlScraper
  3. self.name = 'nginx'
  4. self.type = 'nginx'
  5. self.version = '1.7.6'
  6. self.base_url = 'http://nginx.org/en/docs/'
  7. html_filters.push 'nginx/clean_html', 'nginx/entries'
  8. options[:container] = '#content'
  9. options[:skip] = %w(
  10. contributing_changes.html
  11. dirindex.html
  12. varindex.html)
  13. options[:skip_patterns] = [/\/faq\//]
  14. options[:attribution] = <<-HTML
  15. &copy; 2002-2014 Igor Sysoev<br>
  16. &copy; 2011-2014 Nginx, Inc.<br>
  17. Licensed under the BSD License.
  18. HTML
  19. end
  20. end