Closes #198.
Unified · Split
| @@ -3,9 +3,9 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def get_name |
| 5 | 5 | name = super |
| 6 | − name.remove!('Element.').try(:downcase!) | |
| 7 | − name.remove!('Attribute.').try(:downcase!) | |
| 8 | − name.remove!('Tutorial.') | |
| 6 | + name.gsub!('Element.', '').try(:downcase!) | |
| 7 | + name.gsub!('Attribute.', '').try(:downcase!) | |
| 8 | + name.gsub!('Tutorial.', '') | |
| 9 | 9 | name.gsub!('_', '') |
| 10 | 10 | |
| 11 | 11 | if name.in?(%w(Element Attribute Content\ type)) |
| @@ -2,6 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Svg < Mdn |
| 3 | 3 | self.name = 'SVG' |
| 4 | 4 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/SVG' |
| 5 | + self.fix_redirections = true | |
| 5 | 6 | |
| 6 | 7 | html_filters.push 'svg/clean_html', 'svg/entries', 'title' |
| 7 | 8 | |
| @@ -17,11 +18,7 @@ module Docs · 9 unmodified lines | ||
| 17 | 18 | end |
| 18 | 19 | end |
| 19 | 20 | |
| 20 | − options[:skip] = %w( | |
| 21 | − /Compatibility_sources | |
| 22 | − /FAQ | |
| 23 | − /SVG_animation_with_SMIL | |
| 24 | − /SVG_as_an_Image) | |
| 21 | + options[:skip] = %w(/Compatibility_sources /FAQ) | |
| 25 | 22 | |
| 26 | 23 | options[:fix_urls] = ->(url) do |
| 27 | 24 | url.sub! 'https://developer.mozilla.org/en-US/Web/SVG', Svg.base_url |