Remove skip paths of non-existent MDN pages
Unified · Split
| @@ -14,12 +14,6 @@ module Docs · 13 unmodified lines | |||
| 14 | 14 | ||
| 15 | options[:root_title] = 'HTML' | 15 | options[:root_title] = 'HTML' |
| 16 | 16 | ||
| 17 | options[:skip] = %w( | ||
| 18 | /index | ||
| 19 | /Element/shadow | ||
| 20 | /Element/webkit-meter-optimum-value | ||
| 21 | ) | ||
| 22 | |||
| 23 | options[:replace_paths] = { | 17 | options[:replace_paths] = { |
| 24 | '/Element/h1' => '/Element/Heading_Elements', | 18 | '/Element/h1' => '/Element/Heading_Elements', |
| 25 | '/Element/h2' => '/Element/Heading_Elements', | 19 | '/Element/h2' => '/Element/Heading_Elements', |
| @@ -15,15 +15,8 @@ module Docs · 14 unmodified lines | |||
| 15 | 15 | ||
| 16 | options[:root_title] = 'JavaScript' | 16 | options[:root_title] = 'JavaScript' |
| 17 | 17 | ||
| 18 | # Don't want | ||
| 19 | options[:skip] = %w( | ||
| 20 | /Methods_Index | ||
| 21 | /Properties_Index | ||
| 22 | /Operators/Legacy_generator_function | ||
| 23 | /Statements/Legacy_generator_function) | ||
| 24 | |||
| 25 | # Duplicates | 18 | # Duplicates |
| 26 | options[:skip].concat %w( | 19 | options[:skip] = %w( |
| 27 | /Global_Objects | 20 | /Global_Objects |
| 28 | /Operators | 21 | /Operators |
| 29 | /Statements) | 22 | /Statements) |
| @@ -25,8 +25,6 @@ module Docs · 24 unmodified lines | |||
| 25 | end | 25 | end |
| 26 | end | 26 | end |
| 27 | 27 | ||
| 28 | options[:skip] = %w(/Compatibility_sources /FAQ) | ||
| 29 | |||
| 30 | options[:fix_urls] = ->(url) do | 28 | options[:fix_urls] = ->(url) do |
| 31 | url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url | 29 | url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url |
| 32 | url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url | 30 | url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url |