History

Update Redis documentation (up to 3.2.0)

Thibaut Courouble committed 10 years ago

Commit 4586dfa1 parent cc60e8c3 files · +9 −3Browse files

Unified · Split

3 files
  1. assets/stylesheets/pages/_redis.scss +1 −1
  2. lib/docs/filters/redis/clean_html.rb +7 −1
  3. lib/docs/scrapers/redis.rb +1 −1
assets/stylesheets/pages/_redis.scss+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
19 19
20 // Others20 // Others
21 21
22 > h1, > h2, > .metadata, > h1 ~ p { margin-left: -1rem; }22 > h1, > h2, > .metadata, > h1 ~ p, > h1 + pre { margin-left: -1rem; }
23 > h2 ~ p { margin-left: 0; }23 > h2 ~ p { margin-left: 0; }
24 24
25 > h2 { @extend %block-heading; }25 > h2 { @extend %block-heading; }
lib/docs/filters/redis/clean_html.rb+7−1
@@ -2,7 +2,13 @@ module Docs · 1 unmodified line
2 class Redis2 class Redis
3 class CleanHtmlFilter < Filter3 class CleanHtmlFilter < Filter
4 def call4 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 css('nav', 'aside', 'form', '.anchor-link').remove13 css('nav', 'aside', 'form', '.anchor-link').remove
8 14
lib/docs/scrapers/redis.rb+1−1
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Redis < UrlScraper2 class Redis < UrlScraper
3 self.type = 'redis'3 self.type = 'redis'
4 self.release = 'up to 3.0.7'4 self.release = 'up to 3.2.0'
5 self.base_url = 'http://redis.io/commands'5 self.base_url = 'http://redis.io/commands'
6 self.links = {6 self.links = {
7 home: 'http://redis.io/',7 home: 'http://redis.io/',