History

Update jQuery Mobile documentation to 1.4.0

Thibaut committed 12 years ago

Commit d50a87e1 parent 1febaea3 files · +6 −10Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/jquery_mobile/entries.rb +2 −2
  3. lib/docs/scrapers/jquery/jquery_mobile.rb +3 −7
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -115,7 +115,7 @@ credits = [ · 114 unmodified lines
115115 'https://raw.github.com/jquery/api.jquery.com/master/LICENSE-MIT.txt'
116116 ], [
117117 'jQuery Mobile',
118− '2013 jQuery Foundation',
118+ '2014 jQuery Foundation',
119119 'MIT',
120120 'https://raw.github.com/jquery/api.jquerymobile.com/master/LICENSE-MIT.txt'
121121 ], [
lib/docs/filters/jquery_mobile/entries.rb+2−2
@@ -2,12 +2,12 @@ module Docs · 1 unmodified line
22 class JqueryMobile
33 class EntriesFilter < Docs::EntriesFilter
44 # Ordered by precedence
5− TYPES = %w(Widgets Events Methods)
5+ TYPES = %w(Widgets Events Properties Methods)
66
77 def get_name
88 name = at_css('h1').content.strip
99 name.sub! ' Widget', ''
10− name.gsub!(/ [A-Z]/) { |str| str.downcase! }
10+ name.prepend '.' if name.start_with? 'jqm'
1111 name << ' event' if type == 'Events' && !name.end_with?(' event')
1212 name
1313 end
lib/docs/scrapers/jquery/jquery_mobile.rb+3−7
@@ -2,19 +2,15 @@ module Docs · 1 unmodified line
22 class JqueryMobile < Jquery
33 self.name = 'jQuery Mobile'
44 self.slug = 'jquerymobile'
5− self.version = '1.3.2'
5+ self.version = '1.4.0'
66 self.base_url = 'http://local.api.jquerymobile.com'
77 self.root_path = '/category/all'
88
99 html_filters.insert_before 'jquery/clean_html', 'jquery_mobile/entries'
1010
1111 options[:root_title] = 'jQuery Mobile'
12+ options[:skip] = %w(/tabs /theme)
1213 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' }
1915 end
2016 end