2013-10-24 20:25:52 +02:00
|
|
|
module Docs
|
|
|
|
class Node < UrlScraper
|
|
|
|
self.name = 'Node.js'
|
|
|
|
self.slug = 'node'
|
|
|
|
self.type = 'node'
|
2015-02-08 17:58:50 +01:00
|
|
|
self.version = '0.12.0'
|
2013-10-24 20:25:52 +02:00
|
|
|
self.base_url = 'http://nodejs.org/api/'
|
|
|
|
|
|
|
|
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>
|
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|