|
|
@@ -1,19 +1,22 @@
|
|
|
module Docs
|
|
|
class JqueryCore < Jquery
|
|
|
self.name = 'jQuery'
|
|
|
- self.release = 'up to 2.1.0'
|
|
|
- self.base_url = 'http://local.api.jquery.com'
|
|
|
+ self.release = 'up to 2.2.0'
|
|
|
+ self.base_url = 'https://api.jquery.com/'
|
|
|
+ self.initial_paths = %w(/index/index)
|
|
|
|
|
|
html_filters.insert_before 'jquery/clean_html', 'jquery_core/entries'
|
|
|
|
|
|
options[:root_title] = 'jQuery'
|
|
|
|
|
|
- # Duplicates
|
|
|
- options[:skip] = %w(/selectors/odd /selectors/even /selectors/event
|
|
|
- /selected /checked)
|
|
|
+ options[:fix_urls] = ->(url) do
|
|
|
+ url.sub! 'http://api.jquery.com/', 'https://api.jquery.com/'
|
|
|
+ end
|
|
|
|
|
|
- options[:replace_paths] = {
|
|
|
- '/index/' => '/index/index',
|
|
|
- '/h/deferred.reject/' => '/deferred.reject' }
|
|
|
+ options[:skip_patterns] += [
|
|
|
+ /h\/deferred\.reject/i,
|
|
|
+ /Selectors\/odd/i,
|
|
|
+ /index/i
|
|
|
+ ]
|
|
|
end
|
|
|
end
|