jquery_ui.rb 604 B

1234567891011121314151617181920212223
  1. module Docs
  2. class JqueryUi < Jquery
  3. self.name = 'jQuery UI'
  4. self.slug = 'jqueryui'
  5. self.release = '1.12.1'
  6. self.base_url = 'https://api.jqueryui.com'
  7. self.root_path = '/category/all'
  8. html_filters.insert_before 'jquery/clean_html', 'jquery_ui/entries'
  9. options[:root_title] = 'jQuery UI'
  10. options[:skip] = %w(/theming)
  11. options[:skip_patterns] += [/\A\/1\./]
  12. options[:fix_urls] = ->(url) do
  13. url.sub! 'http://api.jqueryui.com/', 'https://api.jqueryui.com/'
  14. end
  15. def get_latest_version(opts)
  16. get_npm_version('jquery-ui', opts)
  17. end
  18. end
  19. end