Update Node.js documentation (6.2.0, 4.4.5)

pull/412/merge
Thibaut Courouble 9 years ago
parent 719460f3b4
commit e5f8a73cc2

@ -1,4 +1,5 @@
._node { ._node {
.api_stability { clear: both; }
.api_stability_0, .api_stability_1 { @extend %note, %note-red; } .api_stability_0, .api_stability_1 { @extend %note, %note-red; }
.api_stability_2 { @extend %note; } .api_stability_2 { @extend %note; }
.api_stability_3, .api_stability_4 { @extend %note, %note-green; } .api_stability_3, .api_stability_4 { @extend %note, %note-green; }
@ -13,5 +14,11 @@
white-space: normal; white-space: normal;
@extend %label; @extend %label;
} }
.api_metadata {
float: right;
margin: 0 0 1em 1em;
@extend %label;
}
} }

@ -16,14 +16,14 @@ module Docs
css('pre').each do |node| css('pre').each do |node|
if lang = node.at_css('code')['class'] if lang = node.at_css('code')['class']
node['data-language'] = lang node['data-language'] = lang.remove('lang-')
end end
node.content = node.content node.content = node.content
end end
css('.__cf_email__').each do |node| css('.__cf_email__').each do |node|
node.replace('pass@host.com') node.replace(decode_cloudflare_email(node['data-cfemail']))
end end
doc doc

@ -23,12 +23,12 @@ module Docs
HTML HTML
version do version do
self.release = '6.0.0' self.release = '6.2.0'
self.base_url = 'https://nodejs.org/api/' self.base_url = 'https://nodejs.org/api/'
end end
version '4 LTS' do 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/" self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/"
end end
end end

Loading…
Cancel
Save