From e5f8a73cc2bde6743b7d45535ef6bd7965c9fed4 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 29 May 2016 10:06:47 -0400 Subject: [PATCH] Update Node.js documentation (6.2.0, 4.4.5) --- assets/stylesheets/pages/_node.scss | 7 +++++++ lib/docs/filters/node/clean_html.rb | 4 ++-- lib/docs/scrapers/node.rb | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/assets/stylesheets/pages/_node.scss b/assets/stylesheets/pages/_node.scss index 8b7b57d1..23560151 100644 --- a/assets/stylesheets/pages/_node.scss +++ b/assets/stylesheets/pages/_node.scss @@ -1,4 +1,5 @@ ._node { + .api_stability { clear: both; } .api_stability_0, .api_stability_1 { @extend %note, %note-red; } .api_stability_2 { @extend %note; } .api_stability_3, .api_stability_4 { @extend %note, %note-green; } @@ -13,5 +14,11 @@ white-space: normal; @extend %label; } + + .api_metadata { + float: right; + margin: 0 0 1em 1em; + @extend %label; + } } diff --git a/lib/docs/filters/node/clean_html.rb b/lib/docs/filters/node/clean_html.rb index d7752c96..32db7055 100644 --- a/lib/docs/filters/node/clean_html.rb +++ b/lib/docs/filters/node/clean_html.rb @@ -16,14 +16,14 @@ module Docs css('pre').each do |node| if lang = node.at_css('code')['class'] - node['data-language'] = lang + node['data-language'] = lang.remove('lang-') end node.content = node.content end css('.__cf_email__').each do |node| - node.replace('pass@host.com') + node.replace(decode_cloudflare_email(node['data-cfemail'])) end doc diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb index c7a8218c..86fd2c2f 100644 --- a/lib/docs/scrapers/node.rb +++ b/lib/docs/scrapers/node.rb @@ -23,12 +23,12 @@ module Docs HTML version do - self.release = '6.0.0' + self.release = '6.2.0' self.base_url = 'https://nodejs.org/api/' end version '4 LTS' do - self.release = '4.4.3' + self.release = '4.4.5' self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/" end end