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.
devdocs/lib/docs/scrapers/http.rb

18 lines
467 B

module Docs
class Http < UrlScraper
self.name = 'HTTP'
self.type = 'rfc'
self.base_url = 'https://tools.ietf.org/html/'
self.initial_paths = %w(rfc2616 rfc4918 rfc7230 rfc7231
rfc7232 rfc7233 rfc7234 rfc7235)
html_filters.push 'http/clean_html', 'http/entries'
options[:container] = '.content'
options[:skip_links] = true
options[:attribution] = <<-HTML
&copy; document authors. All rights reserved.
HTML
end
end