History

Merge pull request #1967 from Elchi3/remove-deleted-mdn

Remove skip paths of non-existent MDN pages

Simon Legner committed 3 years ago

Commit 6febd562 parents ecb1bfc 426be313 files · +1 −16Browse files

Unified · Split

3 files
  1. lib/docs/scrapers/mdn/html.rb +0 −6
  2. lib/docs/scrapers/mdn/javascript.rb +1 −8
  3. lib/docs/scrapers/mdn/svg.rb +0 −2
lib/docs/scrapers/mdn/html.rb+0−6
@@ -14,12 +14,6 @@ module Docs · 13 unmodified lines
1414
1515 options[:root_title] = 'HTML'
1616
17− options[:skip] = %w(
18− /index
19− /Element/shadow
20− /Element/webkit-meter-optimum-value
21− )
22−
2317 options[:replace_paths] = {
2418 '/Element/h1' => '/Element/Heading_Elements',
2519 '/Element/h2' => '/Element/Heading_Elements',
lib/docs/scrapers/mdn/javascript.rb+1−8
@@ -15,15 +15,8 @@ module Docs · 14 unmodified lines
1515
1616 options[:root_title] = 'JavaScript'
1717
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−
2518 # Duplicates
26− options[:skip].concat %w(
19+ options[:skip] = %w(
2720 /Global_Objects
2821 /Operators
2922 /Statements)
lib/docs/scrapers/mdn/svg.rb+0−2
@@ -25,8 +25,6 @@ module Docs · 24 unmodified lines
2525 end
2626 end
2727
28− options[:skip] = %w(/Compatibility_sources /FAQ)
29−
3028 options[:fix_urls] = ->(url) do
3129 url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url
3230 url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url