Update jQuery Mobile documentation to 1.4.0

pull/33/head
Thibaut 11 years ago
parent 1febaeac40
commit d50a87e37a

@ -115,7 +115,7 @@ credits = [
'https://raw.github.com/jquery/api.jquery.com/master/LICENSE-MIT.txt' 'https://raw.github.com/jquery/api.jquery.com/master/LICENSE-MIT.txt'
], [ ], [
'jQuery Mobile', 'jQuery Mobile',
'2013 jQuery Foundation', '2014 jQuery Foundation',
'MIT', 'MIT',
'https://raw.github.com/jquery/api.jquerymobile.com/master/LICENSE-MIT.txt' 'https://raw.github.com/jquery/api.jquerymobile.com/master/LICENSE-MIT.txt'
], [ ], [

@ -2,12 +2,12 @@ module Docs
class JqueryMobile class JqueryMobile
class EntriesFilter < Docs::EntriesFilter class EntriesFilter < Docs::EntriesFilter
# Ordered by precedence # Ordered by precedence
TYPES = %w(Widgets Events Methods) TYPES = %w(Widgets Events Properties Methods)
def get_name def get_name
name = at_css('h1').content.strip name = at_css('h1').content.strip
name.sub! ' Widget', '' name.sub! ' Widget', ''
name.gsub!(/ [A-Z]/) { |str| str.downcase! } name.prepend '.' if name.start_with? 'jqm'
name << ' event' if type == 'Events' && !name.end_with?(' event') name << ' event' if type == 'Events' && !name.end_with?(' event')
name name
end end

@ -2,19 +2,15 @@ module Docs
class JqueryMobile < Jquery class JqueryMobile < Jquery
self.name = 'jQuery Mobile' self.name = 'jQuery Mobile'
self.slug = 'jquerymobile' self.slug = 'jquerymobile'
self.version = '1.3.2' self.version = '1.4.0'
self.base_url = 'http://local.api.jquerymobile.com' self.base_url = 'http://local.api.jquerymobile.com'
self.root_path = '/category/all' self.root_path = '/category/all'
html_filters.insert_before 'jquery/clean_html', 'jquery_mobile/entries' html_filters.insert_before 'jquery/clean_html', 'jquery_mobile/entries'
options[:root_title] = 'jQuery Mobile' options[:root_title] = 'jQuery Mobile'
options[:skip] = %w(/tabs /theme)
options[:skip_patterns].concat [/\A\/icons/] options[:skip_patterns].concat [/\A\/icons/]
options[:replace_paths] = { options[:replace_paths] = { '/select/' => '/selectmenu' }
'/select/' => '/selectmenu',
'/forms/selects' => '/selectmenu',
'/forms/checkboxes' => '/checkboxradio',
'/forms/radiobuttons' => '/checkboxradio',
'/forms/slider/' => '/slider' }
end end
end end

Loading…
Cancel
Save