From c7af9e65d1ab9827e9875332e9d1f54996949d23 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 2 Oct 2016 11:24:08 -0400 Subject: [PATCH] Add RFC 4918 to HTTP documentation --- lib/docs/filters/http/entries.rb | 5 +++++ lib/docs/scrapers/http.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/http/entries.rb b/lib/docs/filters/http/entries.rb index d4893529..e08c43be 100644 --- a/lib/docs/filters/http/entries.rb +++ b/lib/docs/filters/http/entries.rb @@ -22,6 +22,11 @@ module Docs [14], [] ], + 'rfc4918' => [ + [], + [11], + [] + ], 'rfc7230' => [ (2..9).to_a, [], diff --git a/lib/docs/scrapers/http.rb b/lib/docs/scrapers/http.rb index 7d7e50c5..2bca45dd 100644 --- a/lib/docs/scrapers/http.rb +++ b/lib/docs/scrapers/http.rb @@ -3,11 +3,12 @@ module Docs self.name = 'HTTP' self.type = 'rfc' self.base_url = 'https://tools.ietf.org/html/' - self.initial_paths = %w(rfc2616 rfc7230 rfc7231 + 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 © document authors. All rights reserved.