1
0

redis.rb 592 B

12345678910111213141516171819
  1. module Docs
  2. class Redis < UrlScraper
  3. self.type = 'redis'
  4. self.version = 'up to 2.8.8'
  5. self.base_url = 'http://redis.io/commands'
  6. html_filters.push 'redis/entries', 'redis/clean_html', 'title'
  7. options[:container] = ->(filter) { filter.root_page? ? '#commands' : '.text' }
  8. options[:title] = false
  9. options[:root_title] = 'Redis'
  10. options[:follow_links] = ->(filter) { filter.root_page? }
  11. options[:attribution] = <<-HTML
  12. &copy; 2006&ndash;2014 Salvatore Sanfilippo and others<br>
  13. Licensed under the three clause BSD license.
  14. HTML
  15. end
  16. end