Update Redis documentation (up to 3.2.0)

pull/407/head
Thibaut Courouble 9 years ago
parent cc60e8c83e
commit 4586dfa543

@ -19,7 +19,7 @@
// Others
> h1, > h2, > .metadata, > h1 ~ p { margin-left: -1rem; }
> h1, > h2, > .metadata, > h1 ~ p, > h1 + pre { margin-left: -1rem; }
> h2 ~ p { margin-left: 0; }
> h2 { @extend %block-heading; }

@ -2,7 +2,13 @@ module Docs
class Redis
class CleanHtmlFilter < Filter
def call
at_css('ul')['class'] = 'commands' if root_page?
if root_page?
at_css('ul')['class'] = 'commands'
else
title = at_css('h1')
title.after("<pre>#{title.content.strip}</pre>")
title.content = title.content.split(' ').first
end
css('nav', 'aside', 'form', '.anchor-link').remove

@ -1,7 +1,7 @@
module Docs
class Redis < UrlScraper
self.type = 'redis'
self.release = 'up to 3.0.7'
self.release = 'up to 3.2.0'
self.base_url = 'http://redis.io/commands'
self.links = {
home: 'http://redis.io/',

Loading…
Cancel
Save