socketio.rb 613 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Socketio < UrlScraper
  3. self.name = 'Socket.IO'
  4. self.slug = 'socketio'
  5. self.type = 'socketio'
  6. self.release = '1.4.5'
  7. self.base_url = 'http://socket.io/docs/'
  8. self.links = {
  9. home: 'http://socket.io/',
  10. code: 'https://github.com/socketio/socket.io'
  11. }
  12. html_filters.push 'socketio/clean_html', 'socketio/entries'
  13. options[:container] = '#content'
  14. options[:trailing_slash] = false
  15. options[:skip] = %w(faq)
  16. options[:attribution] = <<-HTML
  17. &copy; 2014&ndash;2015 Automattic<br>
  18. Licensed under the MIT License.
  19. HTML
  20. end
  21. end