Update Moment.js documentation (2.14.1)

This commit is contained in:
Thibaut Courouble 2016-07-10 15:48:34 -04:00
parent aab7768253
commit e4487c9a06
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,8 @@ module Docs
elsif node['id'] == 'customization-now'
name = 'moment.now'
elsif %w(Display Durations Get\ +\ Set i18n Manipulate Query Utilities).include?(type) ||
%w(parsing-is-valid parsing-parse-zone parsing-unix-timestamp parsing-utc parsing-creation-data 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 customization-relative-time-rounding
customization-calendar-format).include?(node['id'])
name = node.next_element.content[/moment(?:\(.*?\))?\.(?:duration\(\)\.)?\w+/]
name.sub! %r{\(.*?\)\.}, '#'
name << '()'

View file

@ -3,7 +3,7 @@ module Docs
self.name = 'Moment.js'
self.slug = 'moment'
self.type = 'moment'
self.release = '2.13.0'
self.release = '2.14.1'
self.base_url = 'http://momentjs.com/docs/'
html_filters.push 'moment/clean_html', 'moment/entries', 'title'