Update Moment.js documentation (2.11.1)

pull/329/head
Thibaut 9 years ago
parent b0a55c4f6e
commit b0526c7a11

@ -256,7 +256,7 @@ credits = [
'http://modernizr.com/license/' 'http://modernizr.com/license/'
], [ ], [
'Moment.js', 'Moment.js',
'2011-2015 Tim Wood, Iskren Chernev, Moment.js contributors', '2011-2016 Tim Wood, Iskren Chernev, Moment.js contributors',
'MIT', 'MIT',
'https://raw.github.com/moment/moment/master/LICENSE' 'https://raw.github.com/moment/moment/master/LICENSE'
], [ ], [

@ -22,8 +22,10 @@ module Docs
if node['id'] == 'utilities-invalid' # bug fix if node['id'] == 'utilities-invalid' # bug fix
name = 'moment.invalid()' name = 'moment.invalid()'
elsif node['id'] == 'customization-now'
name = 'moment.now'
elsif %w(Display Durations Get\ +\ Set i18n Manipulate Query Utilities).include?(type) || elsif %w(Display Durations Get\ +\ Set i18n Manipulate Query Utilities).include?(type) ||
%w(parsing-is-valid parsing-parse-zone parsing-unix-timestamp parsing-utc customization-relative-time-threshold).include?(node['id']) %w(parsing-is-valid parsing-parse-zone parsing-unix-timestamp parsing-utc parsing-creation-data customization-relative-time-threshold).include?(node['id'])
name = node.next_element.content[/moment(?:\(.*?\))?\.(?:duration\(\)\.)?\w+/] name = node.next_element.content[/moment(?:\(.*?\))?\.(?:duration\(\)\.)?\w+/]
name.sub! %r{\(.*?\)\.}, '#' name.sub! %r{\(.*?\)\.}, '#'
name << '()' name << '()'

@ -3,7 +3,7 @@ module Docs
self.name = 'Moment.js' self.name = 'Moment.js'
self.slug = 'moment' self.slug = 'moment'
self.type = 'moment' self.type = 'moment'
self.version = '2.10.2' self.version = '2.11.1'
self.base_url = 'http://momentjs.com/docs/' self.base_url = 'http://momentjs.com/docs/'
html_filters.push 'moment/clean_html', 'moment/entries', 'title' html_filters.push 'moment/clean_html', 'moment/entries', 'title'
@ -13,7 +13,7 @@ module Docs
options[:skip_links] = true options[:skip_links] = true
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2011&ndash;2015 Tim Wood, Iskren Chernev, Moment.js contributors<br> &copy; 2011&ndash;2016 Tim Wood, Iskren Chernev, Moment.js contributors<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
end end

Loading…
Cancel
Save