http.rb 441 B

1234567891011121314
  1. module Docs
  2. class Http < UrlScraper
  3. self.name = 'HTTP'
  4. self.type = 'rfc'
  5. self.base_url = 'http://www.w3.org/Protocols/rfc2616/'
  6. self.root_path = 'rfc2616.html'
  7. html_filters.push 'http/clean_html', 'http/entries'
  8. options[:only] = %w(rfc2616-sec10.html rfc2616-sec14.html)
  9. options[:container] = ->(filter) { '.toc' if filter.root_page? }
  10. options[:attribution] = "&copy; 1999 The Internet Society"
  11. end
  12. end