فهرست منبع

Add RFC 4918 to HTTP documentation

Thibaut Courouble 9 سال پیش
والد
کامیت
c7af9e65d1
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 5 0
      lib/docs/filters/http/entries.rb
  2. 2 1
      lib/docs/scrapers/http.rb

+ 5 - 0
lib/docs/filters/http/entries.rb

@@ -22,6 +22,11 @@ module Docs
           [14],
           []
         ],
+        'rfc4918' => [
+          [],
+          [11],
+          []
+        ],
         'rfc7230' => [
           (2..9).to_a,
           [],

+ 2 - 1
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
       &copy; document authors. All rights reserved.