mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Node.js documentation (6.2.0, 4.4.5)
This commit is contained in:
parent
719460f3b4
commit
e5f8a73cc2
3 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue