History

Version Node documentation (5.5 and 4.2 LTS)

Ref #25.

Thibaut Courouble committed 10 years ago

Commit ff2eaa71 parent 3df9cff2 files · +10 −11Browse files

Unified · Split

2 files
  1. lib/docs/scrapers/node.rb +10 −2
  2. lib/docs/scrapers/node_lts.rb +0 −9
lib/docs/scrapers/node.rb+10−2
@@ -3,8 +3,6 @@ module Docs · 2 unmodified lines
3 self.name = 'Node.js'3 self.name = 'Node.js'
4 self.slug = 'node'4 self.slug = 'node'
5 self.type = 'node'5 self.type = 'node'
6 self.release = '5.4.0'
7 self.base_url = 'https://nodejs.org/api/'
8 self.links = {6 self.links = {
9 home: 'https://nodejs.org/',7 home: 'https://nodejs.org/',
10 code: 'https://github.com/nodejs/node'8 code: 'https://github.com/nodejs/node'
@@ -23,5 +21,15 @@ module Docs · 12 unmodified lines
23 Node.js is a trademark of Joyent, Inc. and is used with its permission.<br>21 Node.js is a trademark of Joyent, Inc. and is used with its permission.<br>
24 We are not endorsed by or affiliated with Joyent.22 We are not endorsed by or affiliated with Joyent.
25 HTML23 HTML
24
25 version do
26 self.release = '5.5.0'
27 self.base_url = 'https://nodejs.org/api/'
28 end
29
30 version '4.2 LTS' do
31 self.release = '4.2.6'
32 self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/"
33 end
26 end34 end
27end35end
lib/docs/scrapers/node_lts.rb+0−9
@@ -1,9 +0,0 @@
1module Docs
2 class NodeLts < Node
3 self.name = 'Node.js (LTS)'
4 self.slug = 'node_lts'
5 self.type = 'node'
6 self.release = '4.2.4'
7 self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/"
8 end
9end