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

Remove skip paths of non-existent MDN pages
pull/1972/head
Simon Legner 2 years ago committed by GitHub
commit 6febd56d4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,12 +14,6 @@ module Docs
options[:root_title] = 'HTML' options[:root_title] = 'HTML'
options[:skip] = %w(
/index
/Element/shadow
/Element/webkit-meter-optimum-value
)
options[:replace_paths] = { options[:replace_paths] = {
'/Element/h1' => '/Element/Heading_Elements', '/Element/h1' => '/Element/Heading_Elements',
'/Element/h2' => '/Element/Heading_Elements', '/Element/h2' => '/Element/Heading_Elements',

@ -15,15 +15,8 @@ module Docs
options[:root_title] = 'JavaScript' options[:root_title] = 'JavaScript'
# Don't want
options[:skip] = %w(
/Methods_Index
/Properties_Index
/Operators/Legacy_generator_function
/Statements/Legacy_generator_function)
# Duplicates # Duplicates
options[:skip].concat %w( options[:skip] = %w(
/Global_Objects /Global_Objects
/Operators /Operators
/Statements) /Statements)

@ -25,8 +25,6 @@ module Docs
end end
end end
options[:skip] = %w(/Compatibility_sources /FAQ)
options[:fix_urls] = ->(url) do 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/Web/SVG', Svg.base_url
url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url url.sub! 'https://developer.mozilla.org/en-US/docs/SVG', Svg.base_url

Loading…
Cancel
Save