Unified · Split
| @@ -115,7 +115,7 @@ credits = [ · 114 unmodified lines | |||
| 115 | 'https://raw.github.com/jquery/api.jquery.com/master/LICENSE-MIT.txt' | 115 | 'https://raw.github.com/jquery/api.jquery.com/master/LICENSE-MIT.txt' |
| 116 | ], [ | 116 | ], [ |
| 117 | 'jQuery Mobile', | 117 | 'jQuery Mobile', |
| 118 | '2013 jQuery Foundation', | 118 | '2014 jQuery Foundation', |
| 119 | 'MIT', | 119 | 'MIT', |
| 120 | 'https://raw.github.com/jquery/api.jquerymobile.com/master/LICENSE-MIT.txt' | 120 | 'https://raw.github.com/jquery/api.jquerymobile.com/master/LICENSE-MIT.txt' |
| 121 | ], [ | 121 | ], [ |
| @@ -2,12 +2,12 @@ module Docs · 1 unmodified line | |||
| 2 | class JqueryMobile | 2 | class JqueryMobile |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | # Ordered by precedence | 4 | # Ordered by precedence |
| 5 | TYPES = %w(Widgets Events Methods) | 5 | TYPES = %w(Widgets Events Properties Methods) |
| 6 | 6 | ||
| 7 | def get_name | 7 | def get_name |
| 8 | name = at_css('h1').content.strip | 8 | name = at_css('h1').content.strip |
| 9 | name.sub! ' Widget', '' | 9 | name.sub! ' Widget', '' |
| 10 | name.gsub!(/ [A-Z]/) { |str| str.downcase! } | 10 | name.prepend '.' if name.start_with? 'jqm' |
| 11 | name << ' event' if type == 'Events' && !name.end_with?(' event') | 11 | name << ' event' if type == 'Events' && !name.end_with?(' event') |
| 12 | name | 12 | name |
| 13 | end | 13 | end |
| @@ -2,19 +2,15 @@ module Docs · 1 unmodified line | |||
| 2 | class JqueryMobile < Jquery | 2 | class JqueryMobile < Jquery |
| 3 | self.name = 'jQuery Mobile' | 3 | self.name = 'jQuery Mobile' |
| 4 | self.slug = 'jquerymobile' | 4 | self.slug = 'jquerymobile' |
| 5 | self.version = '1.3.2' | 5 | self.version = '1.4.0' |
| 6 | self.base_url = 'http://local.api.jquerymobile.com' | 6 | self.base_url = 'http://local.api.jquerymobile.com' |
| 7 | self.root_path = '/category/all' | 7 | self.root_path = '/category/all' |
| 8 | 8 | ||
| 9 | html_filters.insert_before 'jquery/clean_html', 'jquery_mobile/entries' | 9 | html_filters.insert_before 'jquery/clean_html', 'jquery_mobile/entries' |
| 10 | 10 | ||
| 11 | options[:root_title] = 'jQuery Mobile' | 11 | options[:root_title] = 'jQuery Mobile' |
| 12 | options[:skip] = %w(/tabs /theme) | ||
| 12 | options[:skip_patterns].concat [/\A\/icons/] | 13 | options[:skip_patterns].concat [/\A\/icons/] |
| 13 | options[:replace_paths] = { | 14 | options[:replace_paths] = { '/select/' => '/selectmenu' } |
| 14 | '/select/' => '/selectmenu', | ||
| 15 | '/forms/selects' => '/selectmenu', | ||
| 16 | '/forms/checkboxes' => '/checkboxradio', | ||
| 17 | '/forms/radiobuttons' => '/checkboxradio', | ||
| 18 | '/forms/slider/' => '/slider' } | ||
| 19 | end | 15 | end |
| 20 | end | 16 | end |