Kaynağa Gözat

Update Moment.js documentation (2.18.1)

Thibaut Courouble 8 yıl önce
ebeveyn
işleme
7312ab3fd5

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

@@ -371,7 +371,7 @@ credits = [
     'https://modernizr.com/license/'
   ], [
     'Moment.js',
-    '2011-2016 Tim Wood, Iskren Chernev, Moment.js contributors',
+    'JS Foundation and other contributors',
     'MIT',
     'https://raw.githubusercontent.com/moment/moment/master/LICENSE'
   ], [

+ 6 - 2
lib/docs/scrapers/moment.rb

@@ -3,10 +3,14 @@ module Docs
     self.name = 'Moment.js'
     self.slug = 'moment'
     self.type = 'moment'
-    self.release = '2.17.0'
+    self.release = '2.18.1'
     self.base_url = 'http://momentjs.com'
     self.root_path = '/docs/'
     self.initial_paths = %w(/guides/)
+    self.links = {
+      home: 'http://momentjs.com/',
+      code: 'https://github.com/moment/moment/'
+    }
 
     html_filters.push 'moment/clean_html', 'moment/entries', 'title'
 
@@ -15,7 +19,7 @@ module Docs
     options[:skip_links] = true
 
     options[:attribution] = <<-HTML
-      &copy; 2011&ndash;2016 Tim Wood, Iskren Chernev, Moment.js contributors<br>
+      &copy; JS Foundation and other contributors<br>
       Licensed under the MIT License.
     HTML
   end