Update Moment.js documentation (2.13.0)

pull/406/head
Thibaut Courouble 9 years ago
parent 866e0e0102
commit 279265d42e

@ -22,7 +22,6 @@ app.views.LodashPage =
app.views.MarionettePage =
app.views.MochaPage =
app.views.ModernizrPage =
app.views.MomentPage =
app.views.MongoosePage =
app.views.NodePage =
app.views.PhaserPage =

@ -9,6 +9,7 @@ class app.views.SimplePage extends app.views.BasePage
app.views.EmberPage =
app.views.GoPage =
app.views.MeteorPage =
app.views.MomentPage =
app.views.PerlPage =
app.views.PostgresPage =
app.views.RamdaPage =

@ -18,7 +18,15 @@ module Docs
# Remove plugin list
doc.children.last.remove while doc.children.last['id'] != 'plugins'
css('.docs-method-edit', '#plugins').remove
css('.docs-method-edit', '#plugins', 'hr').remove
css('pre').each do |node|
if node.content =~ /\A</
node['data-language'] = 'html'
elsif node.content !~ /\A\d/
node['data-language'] = 'javascript'
end
end
doc
end

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

Loading…
Cancel
Save