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
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 ], [
lib/docs/filters/jquery_mobile/entries.rb+2−2
@@ -2,12 +2,12 @@ module Docs · 1 unmodified line
2 class JqueryMobile2 class JqueryMobile
3 class EntriesFilter < Docs::EntriesFilter3 class EntriesFilter < Docs::EntriesFilter
4 # Ordered by precedence4 # Ordered by precedence
5 TYPES = %w(Widgets Events Methods)5 TYPES = %w(Widgets Events Properties Methods)
6 6
7 def get_name7 def get_name
8 name = at_css('h1').content.strip8 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 name12 name
13 end13 end
lib/docs/scrapers/jquery/jquery_mobile.rb+3−7
@@ -2,19 +2,15 @@ module Docs · 1 unmodified line
2 class JqueryMobile < Jquery2 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 end15 end
20end16end