socketio.rb 492 B

1234567891011121314151617181920
  1. module Docs
  2. class Socketio < UrlScraper
  3. self.name = 'Socket.IO'
  4. self.slug = 'socketio'
  5. self.type = 'socketio'
  6. self.version = '1.2.1'
  7. self.base_url = 'http://socket.io/docs/'
  8. html_filters.push 'socketio/clean_html', 'socketio/entries'
  9. options[:container] = '#content'
  10. options[:trailing_slash] = false
  11. options[:skip] = %w(faq)
  12. options[:attribution] = <<-HTML
  13. &copy; 2014 Automattic<br>
  14. Licensed under the MIT License.
  15. HTML
  16. end
  17. end