| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- module Docs
- class Node < UrlScraper
- self.name = 'Node.js'
- self.slug = 'node'
- self.type = 'node'
- self.links = {
- home: 'https://nodejs.org/',
- code: 'https://github.com/nodejs/node'
- }
- 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.<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.
- HTML
- version do
- self.release = '9.8.0'
- self.base_url = 'https://nodejs.org/dist/latest-v9.x/docs/api/'
- end
- version '8 LTS' do
- self.release = '8.10.0'
- self.base_url = 'https://nodejs.org/dist/latest-v8.x/docs/api/'
- end
- version '6 LTS' do
- self.release = '6.13.1'
- self.base_url = 'https://nodejs.org/dist/latest-v6.x/docs/api/'
- end
- version '4 LTS' do
- self.release = '4.8.7'
- self.base_url = 'https://nodejs.org/dist/latest-v4.x/docs/api/'
- end
- end
- end
|