mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-18 10:07:11 +01:00
21 lines
586 B
Ruby
21 lines
586 B
Ruby
module Docs
|
|
class Node < UrlScraper
|
|
self.name = 'Node.js'
|
|
self.slug = 'node'
|
|
self.type = 'node'
|
|
self.version = '0.10.31'
|
|
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)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© Joyent, Inc. and other Node contributors<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|