Unified · Split
| @@ -3,9 +3,11 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def get_name |
| 5 | 5 | name = super |
| 6 | − name.gsub!('Element.', '') | |
| 7 | 6 | name.gsub!('Attribute.', '') |
| 8 | − name.gsub!('Tutorial.', '') | |
| 7 | + name.gsub!('Element.', '') | |
| 8 | + name.gsub!('Guides.', '') | |
| 9 | + name.gsub!('Reference.', '') | |
| 10 | + name.gsub!('Tutorials.', '') | |
| 9 | 11 | name.gsub!('_', '') |
| 10 | 12 | |
| 11 | 13 | if name.in?(%w(Element Attribute Content\ type)) |
| @@ -16,14 +18,14 @@ module Docs · 4 unmodified lines | ||
| 16 | 18 | end |
| 17 | 19 | |
| 18 | 20 | def get_type |
| 19 | − if slug.start_with?('Element') | |
| 21 | + if slug.start_with?('Reference/Element') | |
| 20 | 22 | 'Elements' |
| 21 | − elsif slug.start_with?('Attribute') | |
| 23 | + elsif slug.start_with?('Reference/Attribute') | |
| 22 | 24 | 'Attributes' |
| 23 | − elsif slug.start_with?('Tutorial') | |
| 24 | − 'Tutorial' | |
| 25 | − elsif slug == 'Content_type' | |
| 26 | − 'Content types' | |
| 25 | + elsif slug.start_with?('Guides') | |
| 26 | + 'Guides' | |
| 27 | + elsif slug.start_with?('Tutorials') | |
| 28 | + 'Tutorials' | |
| 27 | 29 | else |
| 28 | 30 | 'Miscellaneous' |
| 29 | 31 | end |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | prepend FixInternalUrlsBehavior |
| 4 | 4 | prepend FixRedirectionsBehavior |
| 5 | 5 | |
| 6 | − # release = '2024-08-20' | |
| 6 | + # release = '2025-09-15' | |
| 7 | 7 | self.name = 'SVG' |
| 8 | 8 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/SVG' |
| 9 | 9 | self.links = { |
| @@ -16,9 +16,9 @@ module Docs · 6 unmodified lines | ||
| 16 | 16 | options[:root_title] = 'SVG' |
| 17 | 17 | |
| 18 | 18 | options[:title] = ->(filter) do |
| 19 | − if filter.slug.starts_with?('Element/') | |
| 19 | + if filter.slug.starts_with?('Reference/Element/') | |
| 20 | 20 | "<#{filter.default_title}>" |
| 21 | − elsif filter.slug != 'Attribute' && filter.slug != 'Element' | |
| 21 | + elsif filter.slug != 'Reference/Attribute' && filter.slug != 'Reference/Element' | |
| 22 | 22 | filter.default_title |
| 23 | 23 | else |
| 24 | 24 | false |