diff --git a/assets/stylesheets/pages/_redis.scss b/assets/stylesheets/pages/_redis.scss index feecaa7f..3ed1837c 100644 --- a/assets/stylesheets/pages/_redis.scss +++ b/assets/stylesheets/pages/_redis.scss @@ -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; } diff --git a/lib/docs/filters/redis/clean_html.rb b/lib/docs/filters/redis/clean_html.rb index 8635d38b..5b3bc5e4 100644 --- a/lib/docs/filters/redis/clean_html.rb +++ b/lib/docs/filters/redis/clean_html.rb @@ -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("
#{title.content.strip}
") + title.content = title.content.split(' ').first + end css('nav', 'aside', 'form', '.anchor-link').remove diff --git a/lib/docs/scrapers/redis.rb b/lib/docs/scrapers/redis.rb index 273b0764..479aa925 100644 --- a/lib/docs/scrapers/redis.rb +++ b/lib/docs/scrapers/redis.rb @@ -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/',