Remove skip paths of non-existent MDN pages
Unified · Split
| @@ -14,12 +14,6 @@ module Docs · 13 unmodified lines | ||
| 14 | 14 | |
| 15 | 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 | 17 | options[:replace_paths] = { |
| 24 | 18 | '/Element/h1' => '/Element/Heading_Elements', |
| 25 | 19 | '/Element/h2' => '/Element/Heading_Elements', |
| @@ -15,15 +15,8 @@ module Docs · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 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 | 18 | # Duplicates |
| 26 | − options[:skip].concat %w( | |
| 19 | + options[:skip] = %w( | |
| 27 | 20 | /Global_Objects |
| 28 | 21 | /Operators |
| 29 | 22 | /Statements) |
| @@ -25,8 +25,6 @@ module Docs · 24 unmodified lines | ||
| 25 | 25 | end |
| 26 | 26 | end |
| 27 | 27 | |
| 28 | − options[:skip] = %w(/Compatibility_sources /FAQ) | |
| 29 | − | |
| 30 | 28 | options[:fix_urls] = ->(url) do |
| 31 | 29 | url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url |
| 32 | 30 | url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url |