- xslt_xpath had an error with redirection.
Unified · Split
| @@ -6,13 +6,14 @@ module Docs · 5 unmodified lines | ||
| 6 | 6 | name.remove! 'XPath.' |
| 7 | 7 | name.remove! 'XSLT.' |
| 8 | 8 | name.remove! 'Axes.' |
| 9 | − name.prepend 'xsl:' if slug =~ /\AXSLT\/[a-z]/ | |
| 9 | + name.remove! 'Element.' | |
| 10 | + name.prepend 'xsl:' if slug =~ /XSLT\/Element/ | |
| 10 | 11 | name << '()' if name.gsub!('Functions.', '') |
| 11 | 12 | name |
| 12 | 13 | end |
| 13 | 14 | |
| 14 | 15 | def get_type |
| 15 | − if slug =~ /\AXSLT\/[a-z]/ | |
| 16 | + if slug =~ /XSLT\/Element/ | |
| 16 | 17 | 'XSLT Elements' |
| 17 | 18 | elsif slug.start_with?('XPath/Axes') |
| 18 | 19 | 'XPath Axes' |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS' |
| 5 | 5 | self.root_path = '/Reference' |
| 6 | 6 | |
| 7 | − html_filters.push 'css/clean_html', 'css/entries', 'title' | |
| 7 | + html_filters.push 'css/clean_html', 'css/entries' | |
| 8 | 8 | |
| 9 | 9 | options[:root_title] = 'CSS' |
| 10 | 10 | |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | self.name = 'DOM' |
| 5 | 5 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/API' |
| 6 | 6 | |
| 7 | − html_filters.push 'dom/clean_html', 'dom/entries', 'title' | |
| 7 | + html_filters.push 'dom/clean_html', 'dom/entries' | |
| 8 | 8 | |
| 9 | 9 | options[:root_title] = 'DOM' |
| 10 | 10 | |
| @@ -6,7 +6,7 @@ module Docs · 5 unmodified lines | ||
| 6 | 6 | self.name = 'JavaScript' |
| 7 | 7 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference' |
| 8 | 8 | |
| 9 | − html_filters.push 'javascript/clean_html', 'javascript/entries', 'title' | |
| 9 | + html_filters.push 'javascript/clean_html', 'javascript/entries' | |
| 10 | 10 | |
| 11 | 11 | options[:root_title] = 'JavaScript' |
| 12 | 12 | |
| @@ -6,7 +6,7 @@ module Docs · 5 unmodified lines | ||
| 6 | 6 | self.name = 'SVG' |
| 7 | 7 | self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/SVG' |
| 8 | 8 | |
| 9 | − html_filters.push 'svg/clean_html', 'svg/entries', 'title' | |
| 9 | + html_filters.push 'svg/clean_html', 'svg/entries' | |
| 10 | 10 | |
| 11 | 11 | options[:root_title] = 'SVG' |
| 12 | 12 | |
| @@ -6,15 +6,11 @@ module Docs · 5 unmodified lines | ||
| 6 | 6 | self.root_path = '/XSLT' |
| 7 | 7 | self.initial_paths = %w(/XPath) |
| 8 | 8 | |
| 9 | − html_filters.push 'xslt_xpath/clean_html', 'xslt_xpath/entries', 'title' | |
| 9 | + html_filters.push 'xslt_xpath/clean_html', 'xslt_xpath/entries' | |
| 10 | 10 | |
| 11 | 11 | options[:root_title] = 'XSLT' |
| 12 | 12 | |
| 13 | 13 | options[:only_patterns] = [/\A\/XSLT/, /\A\/XPath/] |
| 14 | 14 | |
| 15 | − options[:fix_urls] = ->(url) do | |
| 16 | − url.sub! 'https://developer.mozilla.org/en-US/docs/Web/XSLT/Element', "#{XsltXpath.base_url}/XSLT" | |
| 17 | − url | |
| 18 | − end | |
| 19 | 15 | end |
| 20 | 16 | end |