node.rb 832 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Node < UrlScraper
  3. self.name = 'Node.js'
  4. self.slug = 'node'
  5. self.type = 'node'
  6. self.release = '5.4.0'
  7. self.base_url = 'https://nodejs.org/api/'
  8. self.links = {
  9. home: 'https://nodejs.org/',
  10. code: 'https://github.com/nodejs/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.<br>
  20. Node.js is a trademark of Joyent, Inc. and is used with its permission.<br>
  21. We are not endorsed by or affiliated with Joyent.
  22. HTML
  23. end
  24. end