Unified · Split
| @@ -23,7 +23,6 @@ app.views.MarionettePage = · 22 unmodified lines | |||
| 23 | app.views.MochaPage = | 23 | app.views.MochaPage = |
| 24 | app.views.ModernizrPage = | 24 | app.views.ModernizrPage = |
| 25 | app.views.MongoosePage = | 25 | app.views.MongoosePage = |
| 26 | app.views.NodePage = | ||
| 27 | app.views.PhaserPage = | 26 | app.views.PhaserPage = |
| 28 | app.views.SinonPage = | 27 | app.views.SinonPage = |
| 29 | app.views.JavascriptPage | 28 | app.views.JavascriptPage |
| @@ -10,6 +10,7 @@ app.views.EmberPage = · 9 unmodified lines | |||
| 10 | app.views.GoPage = | 10 | app.views.GoPage = |
| 11 | app.views.MeteorPage = | 11 | app.views.MeteorPage = |
| 12 | app.views.MomentPage = | 12 | app.views.MomentPage = |
| 13 | app.views.NodePage = | ||
| 13 | app.views.PerlPage = | 14 | app.views.PerlPage = |
| 14 | app.views.PostgresPage = | 15 | app.views.PostgresPage = |
| 15 | app.views.RamdaPage = | 16 | app.views.RamdaPage = |
| @@ -15,6 +15,10 @@ module Docs · 14 unmodified lines | |||
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | css('pre').each do |node| | 17 | css('pre').each do |node| |
| 18 | if lang = node.at_css('code')['class'] | ||
| 19 | node['data-language'] = lang | ||
| 20 | end | ||
| 21 | |||
| 18 | node.content = node.content | 22 | node.content = node.content |
| 19 | end | 23 | end |
| 20 | 24 | ||
| @@ -23,12 +23,12 @@ module Docs · 22 unmodified lines | |||
| 23 | HTML | 23 | HTML |
| 24 | 24 | ||
| 25 | version do | 25 | version do |
| 26 | self.release = '5.10.0' | 26 | self.release = '5.11.0' |
| 27 | self.base_url = 'https://nodejs.org/api/' | 27 | self.base_url = 'https://nodejs.org/api/' |
| 28 | end | 28 | end |
| 29 | 29 | ||
| 30 | version '4 LTS' do | 30 | version '4 LTS' do |
| 31 | self.release = '4.4.2' | 31 | self.release = '4.4.3' |
| 32 | self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/" | 32 | self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/" |
| 33 | end | 33 | end |
| 34 | end | 34 | end |