Jasper van MerleRefactoring and cleaning up41e0a137 years agoHistory
25 lines · 830 B · Ruby
RawDownload
module Docs  class JqueryMobile < Jquery    self.name = 'jQuery Mobile'    self.slug = 'jquerymobile'    self.release = '1.4.5'    self.base_url = 'https://api.jquerymobile.com'    self.root_path = '/category/all'     html_filters.insert_before 'jquery/clean_html', 'jquery_mobile/entries'     options[:root_title] = 'jQuery Mobile'    options[:skip] = %w(/tabs /theme)    options[:skip_patterns] += [/\A\/icons/, /cdn-cgi/i]    options[:replace_paths] = { '/select/' => '/selectmenu' }     options[:fix_urls] = ->(url) do      url.sub! 'http://api.jquerymobile.com/', 'https://api.jquerymobile.com/'    end     def get_latest_version(opts)      doc = fetch_doc('https://jquerymobile.com/', opts)      doc.at_css('.download-box > .download-option:last-child > span').content.sub(/Version /, '')    end  endend

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t