Unified · Split
| @@ -22,7 +22,6 @@ app.views.LodashPage = · 21 unmodified lines | |||
| 22 | app.views.MarionettePage = | 22 | app.views.MarionettePage = |
| 23 | app.views.MochaPage = | 23 | app.views.MochaPage = |
| 24 | app.views.ModernizrPage = | 24 | app.views.ModernizrPage = |
| 25 | app.views.MomentPage = | ||
| 26 | app.views.MongoosePage = | 25 | app.views.MongoosePage = |
| 27 | app.views.NodePage = | 26 | app.views.NodePage = |
| 28 | app.views.PhaserPage = | 27 | app.views.PhaserPage = |
| @@ -9,6 +9,7 @@ class app.views.SimplePage extends app.views.BasePage · 8 unmodified lines | |||
| 9 | app.views.EmberPage = | 9 | app.views.EmberPage = |
| 10 | app.views.GoPage = | 10 | app.views.GoPage = |
| 11 | app.views.MeteorPage = | 11 | app.views.MeteorPage = |
| 12 | app.views.MomentPage = | ||
| 12 | app.views.PerlPage = | 13 | app.views.PerlPage = |
| 13 | app.views.PostgresPage = | 14 | app.views.PostgresPage = |
| 14 | app.views.RamdaPage = | 15 | app.views.RamdaPage = |
| @@ -18,7 +18,15 @@ module Docs · 17 unmodified lines | |||
| 18 | # Remove plugin list | 18 | # Remove plugin list |
| 19 | doc.children.last.remove while doc.children.last['id'] != 'plugins' | 19 | doc.children.last.remove while doc.children.last['id'] != 'plugins' |
| 20 | 20 | ||
| 21 | css('.docs-method-edit', '#plugins').remove | 21 | css('.docs-method-edit', '#plugins', 'hr').remove |
| 22 | |||
| 23 | css('pre').each do |node| | ||
| 24 | if node.content =~ /\A</ | ||
| 25 | node['data-language'] = 'html' | ||
| 26 | elsif node.content !~ /\A\d/ | ||
| 27 | node['data-language'] = 'javascript' | ||
| 28 | end | ||
| 29 | end | ||
| 22 | 30 | ||
| 23 | doc | 31 | doc |
| 24 | end | 32 | end |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | |||
| 3 | self.name = 'Moment.js' | 3 | self.name = 'Moment.js' |
| 4 | self.slug = 'moment' | 4 | self.slug = 'moment' |
| 5 | self.type = 'moment' | 5 | self.type = 'moment' |
| 6 | self.release = '2.12.0' | 6 | self.release = '2.13.0' |
| 7 | self.base_url = 'http://momentjs.com/docs/' | 7 | self.base_url = 'http://momentjs.com/docs/' |
| 8 | 8 | ||
| 9 | html_filters.push 'moment/clean_html', 'moment/entries', 'title' | 9 | html_filters.push 'moment/clean_html', 'moment/entries', 'title' |