2013-10-24 20:25:52 +02:00
|
|
|
module Docs
|
|
|
|
class Node < UrlScraper
|
|
|
|
self.name = 'Node.js'
|
|
|
|
self.slug = 'node'
|
|
|
|
self.type = 'node'
|
2015-03-29 16:53:01 +02:00
|
|
|
self.links = {
|
|
|
|
home: 'https://nodejs.org/',
|
2015-11-01 16:56:45 +01:00
|
|
|
code: 'https://github.com/nodejs/node'
|
2015-03-29 16:53:01 +02:00
|
|
|
}
|
2013-10-24 20:25:52 +02:00
|
|
|
|
|
|
|
html_filters.push 'node/clean_html', 'node/entries', 'title'
|
|
|
|
|
|
|
|
options[:title] = false
|
|
|
|
options[:root_title] = 'Node.js'
|
|
|
|
options[:container] = '#apicontent'
|
|
|
|
options[:skip] = %w(index.html all.html documentation.html synopsis.html)
|
|
|
|
|
2013-11-16 17:00:08 +01:00
|
|
|
options[:attribution] = <<-HTML
|
2013-10-24 20:25:52 +02:00
|
|
|
© Joyent, Inc. and other Node contributors<br>
|
2015-11-01 16:56:45 +01:00
|
|
|
Licensed under the MIT License.<br>
|
|
|
|
Node.js is a trademark of Joyent, Inc. and is used with its permission.<br>
|
|
|
|
We are not endorsed by or affiliated with Joyent.
|
2013-10-24 20:25:52 +02:00
|
|
|
HTML
|
2016-01-24 18:56:59 +01:00
|
|
|
|
|
|
|
version do
|
2017-10-07 18:08:19 +02:00
|
|
|
self.release = '8.6.0'
|
2017-06-04 17:50:40 +02:00
|
|
|
self.base_url = 'https://nodejs.org/dist/latest-v8.x/docs/api/'
|
2016-10-30 21:58:25 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
version '6 LTS' do
|
2017-10-07 18:08:19 +02:00
|
|
|
self.release = '6.11.4'
|
2016-10-01 17:01:30 +02:00
|
|
|
self.base_url = 'https://nodejs.org/dist/latest-v6.x/docs/api/'
|
2016-01-24 18:56:59 +01:00
|
|
|
end
|
|
|
|
|
2016-02-15 18:19:36 +01:00
|
|
|
version '4 LTS' do
|
2017-07-22 18:44:48 +02:00
|
|
|
self.release = '4.8.4'
|
2016-10-01 17:01:30 +02:00
|
|
|
self.base_url = 'https://nodejs.org/dist/latest-v4.x/docs/api/'
|
2016-01-24 18:56:59 +01:00
|
|
|
end
|
2013-10-24 20:25:52 +02:00
|
|
|
end
|
|
|
|
end
|