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
10 10
11 options[:root_title] = 'HTML'11 options[:root_title] = 'HTML'
12 12
13 options[:skip] = %w(
14 /index
15 /Element/shadow
16 /Element/webkit-meter-optimum-value
17 )
18
19 options[:replace_paths] = {13 options[:replace_paths] = {
20 '/Element/h1' => '/Element/Heading_Elements',14 '/Element/h1' => '/Element/Heading_Elements',
21 '/Element/h2' => '/Element/Heading_Elements',15 '/Element/h2' => '/Element/Heading_Elements',
lib/docs/scrapers/mdn/javascript.rb+0−7
@@ -11,13 +11,6 @@ module Docs · 10 unmodified lines
11 11
12 options[:root_title] = 'JavaScript'12 options[:root_title] = 'JavaScript'
13 13
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
21 # Duplicates14 # Duplicates
22 options[:skip].concat %w(15 options[:skip].concat %w(
23 /Global_Objects16 /Global_Objects
lib/docs/scrapers/mdn/svg.rb+0−2
@@ -21,8 +21,6 @@ module Docs · 20 unmodified lines
21 end21 end
22 end22 end
23 23
24 options[:skip] = %w(/Compatibility_sources /FAQ)
25
26 options[:fix_urls] = ->(url) do24 options[:fix_urls] = ->(url) do
27 url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url25 url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url
28 url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url26 url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url