iojs.rb 557 B

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