Unified · Split
| @@ -22,7 +22,6 @@ app.views.LodashPage = · 21 unmodified lines | ||
| 22 | 22 | app.views.MarionettePage = |
| 23 | 23 | app.views.MochaPage = |
| 24 | 24 | app.views.ModernizrPage = |
| 25 | −app.views.MomentPage = | |
| 26 | 25 | app.views.MongoosePage = |
| 27 | 26 | app.views.NodePage = |
| 28 | 27 | app.views.PhaserPage = |
| @@ -9,6 +9,7 @@ class app.views.SimplePage extends app.views.BasePage · 8 unmodified lines | ||
| 9 | 9 | app.views.EmberPage = |
| 10 | 10 | app.views.GoPage = |
| 11 | 11 | app.views.MeteorPage = |
| 12 | +app.views.MomentPage = | |
| 12 | 13 | app.views.PerlPage = |
| 13 | 14 | app.views.PostgresPage = |
| 14 | 15 | app.views.RamdaPage = |
| @@ -18,7 +18,15 @@ module Docs · 17 unmodified lines | ||
| 18 | 18 | # Remove plugin list |
| 19 | 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 | 31 | doc |
| 24 | 32 | end |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'Moment.js' |
| 4 | 4 | self.slug = 'moment' |
| 5 | 5 | self.type = 'moment' |
| 6 | − self.release = '2.12.0' | |
| 6 | + self.release = '2.13.0' | |
| 7 | 7 | self.base_url = 'http://momentjs.com/docs/' |
| 8 | 8 | |
| 9 | 9 | html_filters.push 'moment/clean_html', 'moment/entries', 'title' |