Fixes #1863.
Unified · Split
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Http < Mdn | 2 | class Http < Mdn |
| 3 | include MultipleBaseUrls | 3 | include MultipleBaseUrls |
| 4 | 4 | ||
| 5 | # release = '2022-09-21' | 5 | # release = '2022-11-17' |
| 6 | self.name = 'HTTP' | 6 | self.name = 'HTTP' |
| 7 | self.base_urls = [ | 7 | self.base_urls = [ |
| 8 | 'https://developer.mozilla.org/en-US/docs/Web/HTTP', | 8 | 'https://developer.mozilla.org/en-US/docs/Web/HTTP', |
| @@ -19,7 +19,7 @@ module Docs · 10 unmodified lines | |||
| 19 | filter.current_url.host == 'datatracker.ietf.org' ? '.content' : Docs::Mdn.options[:container] | 19 | filter.current_url.host == 'datatracker.ietf.org' ? '.content' : Docs::Mdn.options[:container] |
| 20 | end | 20 | end |
| 21 | options[:skip_links] = ->(filter) do | 21 | options[:skip_links] = ->(filter) do |
| 22 | filter.current_url.host == 'datatracker.ietf.org' ? true : false | 22 | filter.current_url.host == 'datatracker.ietf.org' |
| 23 | end | 23 | end |
| 24 | options[:replace_paths] = { '/Access_control_CORS' => '/CORS' } | 24 | options[:replace_paths] = { '/Access_control_CORS' => '/CORS' } |
| 25 | options[:fix_urls] = ->(url) do | 25 | options[:fix_urls] = ->(url) do |