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