|
|
@@ -0,0 +1,19 @@
|
|
|
+module Docs
|
|
|
+ class Redis < UrlScraper
|
|
|
+ self.type = 'redis'
|
|
|
+ self.version = 'up to 2.8.3'
|
|
|
+ self.base_url = 'http://redis.io/commands'
|
|
|
+
|
|
|
+ html_filters.push 'redis/entries', 'redis/clean_html', 'title'
|
|
|
+
|
|
|
+ options[:container] = ->(filter) { filter.root_page? ? '#commands' : '.text' }
|
|
|
+ options[:title] = false
|
|
|
+ options[:root_title] = 'Redis'
|
|
|
+ options[:follow_links] = ->(filter) { filter.root_page? }
|
|
|
+
|
|
|
+ options[:attribution] = <<-HTML
|
|
|
+ © 2006–2013 Salvatore Sanfilippo and others<br>
|
|
|
+ Licensed under the three clause BSD license.
|
|
|
+ HTML
|
|
|
+ end
|
|
|
+end
|