History

Remove skip paths of non-existent MDN pages

Florian Scholz committed 3 years ago

Commit 46f2a841 parent e0824c33 files · +0 −15Browse files

Unified · Split

3 files
  1. lib/docs/scrapers/mdn/html.rb +0 −6
  2. lib/docs/scrapers/mdn/javascript.rb +0 −7
  3. lib/docs/scrapers/mdn/svg.rb +0 −2
lib/docs/scrapers/mdn/html.rb+0−6
@@ -10,12 +10,6 @@ module Docs · 9 unmodified lines
1010
1111 options[:root_title] = 'HTML'
1212
13− options[:skip] = %w(
14− /index
15− /Element/shadow
16− /Element/webkit-meter-optimum-value
17− )
18−
1913 options[:replace_paths] = {
2014 '/Element/h1' => '/Element/Heading_Elements',
2115 '/Element/h2' => '/Element/Heading_Elements',
lib/docs/scrapers/mdn/javascript.rb+0−7
@@ -11,13 +11,6 @@ module Docs · 10 unmodified lines
1111
1212 options[:root_title] = 'JavaScript'
1313
14− # Don't want
15− options[:skip] = %w(
16− /Methods_Index
17− /Properties_Index
18− /Operators/Legacy_generator_function
19− /Statements/Legacy_generator_function)
20−
2114 # Duplicates
2215 options[:skip].concat %w(
2316 /Global_Objects
lib/docs/scrapers/mdn/svg.rb+0−2
@@ -21,8 +21,6 @@ module Docs · 20 unmodified lines
2121 end
2222 end
2323
24− options[:skip] = %w(/Compatibility_sources /FAQ)
25−
2624 options[:fix_urls] = ->(url) do
2725 url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url
2826 url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url