mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Moment.js documentation (2.14.1)
This commit is contained in:
parent
aab7768253
commit
e4487c9a06
2 changed files with 3 additions and 2 deletions
|
@ -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 << '()'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue