nginx.rb 674 B

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