From 46f2a8484be66c9e142f520f57979f1cac87cb5b Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Thu, 13 Apr 2023 17:40:18 +0200 Subject: [PATCH] Remove skip paths of non-existent MDN pages --- lib/docs/scrapers/mdn/html.rb | 6 ------ lib/docs/scrapers/mdn/javascript.rb | 7 ------- lib/docs/scrapers/mdn/svg.rb | 2 -- 3 files changed, 15 deletions(-) diff --git a/lib/docs/scrapers/mdn/html.rb b/lib/docs/scrapers/mdn/html.rb index be7e7bae..3144231d 100644 --- a/lib/docs/scrapers/mdn/html.rb +++ b/lib/docs/scrapers/mdn/html.rb @@ -10,12 +10,6 @@ module Docs options[:root_title] = 'HTML' - options[:skip] = %w( - /index - /Element/shadow - /Element/webkit-meter-optimum-value - ) - options[:replace_paths] = { '/Element/h1' => '/Element/Heading_Elements', '/Element/h2' => '/Element/Heading_Elements', diff --git a/lib/docs/scrapers/mdn/javascript.rb b/lib/docs/scrapers/mdn/javascript.rb index 8c1a64bc..60e7a1ed 100644 --- a/lib/docs/scrapers/mdn/javascript.rb +++ b/lib/docs/scrapers/mdn/javascript.rb @@ -11,13 +11,6 @@ module Docs options[:root_title] = 'JavaScript' - # Don't want - options[:skip] = %w( - /Methods_Index - /Properties_Index - /Operators/Legacy_generator_function - /Statements/Legacy_generator_function) - # Duplicates options[:skip].concat %w( /Global_Objects diff --git a/lib/docs/scrapers/mdn/svg.rb b/lib/docs/scrapers/mdn/svg.rb index 689fae99..934b6403 100644 --- a/lib/docs/scrapers/mdn/svg.rb +++ b/lib/docs/scrapers/mdn/svg.rb @@ -21,8 +21,6 @@ module Docs end end - options[:skip] = %w(/Compatibility_sources /FAQ) - options[:fix_urls] = ->(url) do url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url