History

Update Moment.js documentation (2.13.0)

Thibaut Courouble committed 10 years ago

Commit 279265d1 parent 866e0e04 files · +11 −3Browse files

Unified · Split

4 files
  1. assets/javascripts/views/pages/javascript.coffee +0 −1
  2. assets/javascripts/views/pages/simple.coffee +1 −0
  3. lib/docs/filters/moment/clean_html.rb +9 −1
  4. lib/docs/scrapers/moment.rb +1 −1
assets/javascripts/views/pages/javascript.coffee+0−1
@@ -22,7 +22,6 @@ app.views.LodashPage = · 21 unmodified lines
22app.views.MarionettePage =22app.views.MarionettePage =
23app.views.MochaPage =23app.views.MochaPage =
24app.views.ModernizrPage =24app.views.ModernizrPage =
25app.views.MomentPage =
26app.views.MongoosePage =25app.views.MongoosePage =
27app.views.NodePage =26app.views.NodePage =
28app.views.PhaserPage =27app.views.PhaserPage =
assets/javascripts/views/pages/simple.coffee+1−0
@@ -9,6 +9,7 @@ class app.views.SimplePage extends app.views.BasePage · 8 unmodified lines
9app.views.EmberPage =9app.views.EmberPage =
10app.views.GoPage =10app.views.GoPage =
11app.views.MeteorPage =11app.views.MeteorPage =
12app.views.MomentPage =
12app.views.PerlPage =13app.views.PerlPage =
13app.views.PostgresPage =14app.views.PostgresPage =
14app.views.RamdaPage =15app.views.RamdaPage =
lib/docs/filters/moment/clean_html.rb+9−1
@@ -18,7 +18,15 @@ module Docs · 17 unmodified lines
18 # Remove plugin list18 # 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').remove21 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 doc31 doc
24 end32 end
lib/docs/scrapers/moment.rb+1−1
@@ -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'