node.rb 691 B

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