Переглянути джерело

Update jQuery core and UI documentations

Thibaut 12 роки тому
батько
коміт
1febaeac40

+ 2 - 2
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -110,7 +110,7 @@ credits = [
     'http://www.w3.org/Protocols/rfc2616/rfc2616-sec21.html#sec21'
   ], [
     'jQuery',
-    '2009 Packt Publishing<br>&copy; 2013 jQuery Foundation',
+    '2009 Packt Publishing<br>&copy; 2014 jQuery Foundation',
     'MIT',
     'https://raw.github.com/jquery/api.jquery.com/master/LICENSE-MIT.txt'
   ], [
@@ -120,7 +120,7 @@ credits = [
     'https://raw.github.com/jquery/api.jquerymobile.com/master/LICENSE-MIT.txt'
   ], [
     'jQuery UI',
-    '2013 jQuery Foundation',
+    '2014 jQuery Foundation',
     'MIT',
     'https://raw.github.com/jquery/api.jqueryui.com/master/LICENSE-MIT.txt'
   ], [

+ 1 - 1
lib/docs/scrapers/jquery/jquery.rb

@@ -12,7 +12,7 @@ module Docs
     options[:skip_patterns] = [/category/]
 
     options[:attribution] = <<-HTML
-      &copy; 2013 The jQuery Foundation<br>
+      &copy; 2014 The jQuery Foundation<br>
       Licensed under the MIT License.
     HTML
   end

+ 3 - 4
lib/docs/scrapers/jquery/jquery_core.rb

@@ -12,9 +12,8 @@ module Docs
     options[:skip] = %w(/selectors/odd /selectors/even /selectors/event
       /selected /checked)
 
-    options[:fix_urls] = ->(url) do
-      url.sub! '.com/index/', '.com/index/index'
-      url
-    end
+    options[:replace_paths] = {
+      '/index/'             => '/index/index',
+      '/h/deferred.reject/' => '/deferred.reject' }
   end
 end