Unified · Split
| @@ -19,7 +19,7 @@ · 18 unmodified lines | ||
| 19 | 19 | |
| 20 | 20 | // Others |
| 21 | 21 | |
| 22 | − > h1, > h2, > .metadata, > h1 ~ p { margin-left: -1rem; } | |
| 22 | + > h1, > h2, > .metadata, > h1 ~ p, > h1 + pre { margin-left: -1rem; } | |
| 23 | 23 | > h2 ~ p { margin-left: 0; } |
| 24 | 24 | |
| 25 | 25 | > h2 { @extend %block-heading; } |
| @@ -2,7 +2,13 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Redis |
| 3 | 3 | class CleanHtmlFilter < Filter |
| 4 | 4 | def call |
| 5 | − at_css('ul')['class'] = 'commands' if root_page? | |
| 5 | + if root_page? | |
| 6 | + at_css('ul')['class'] = 'commands' | |
| 7 | + else | |
| 8 | + title = at_css('h1') | |
| 9 | + title.after("<pre>#{title.content.strip}</pre>") | |
| 10 | + title.content = title.content.split(' ').first | |
| 11 | + end | |
| 6 | 12 | |
| 7 | 13 | css('nav', 'aside', 'form', '.anchor-link').remove |
| 8 | 14 | |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class Redis < UrlScraper |
| 3 | 3 | self.type = 'redis' |
| 4 | − self.release = 'up to 3.0.7' | |
| 4 | + self.release = 'up to 3.2.0' | |
| 5 | 5 | self.base_url = 'http://redis.io/commands' |
| 6 | 6 | self.links = { |
| 7 | 7 | home: 'http://redis.io/', |