node.rb 586 B

123456789101112131415161718192021
  1. module Docs
  2. class Node < UrlScraper
  3. self.name = 'Node.js'
  4. self.slug = 'node'
  5. self.type = 'node'
  6. self.version = '0.10.21'
  7. self.base_url = 'http://nodejs.org/api/'
  8. html_filters.push 'node/clean_html', 'node/entries', 'title'
  9. options[:title] = false
  10. options[:root_title] = 'Node.js'
  11. options[:container] = '#apicontent'
  12. options[:skip] = %w(index.html all.html documentation.html synopsis.html)
  13. options[:attribution] = <<-HTML
  14. &copy; Joyent, Inc. and other Node contributors<br>
  15. Licensed under the MIT License.
  16. HTML
  17. end
  18. end