Unified · Split
| @@ -1,4 +1,5 @@ | |||
| 1 | ._node { | 1 | ._node { |
| 2 | .api_stability { clear: both; } | ||
| 2 | .api_stability_0, .api_stability_1 { @extend %note, %note-red; } | 3 | .api_stability_0, .api_stability_1 { @extend %note, %note-red; } |
| 3 | .api_stability_2 { @extend %note; } | 4 | .api_stability_2 { @extend %note; } |
| 4 | .api_stability_3, .api_stability_4 { @extend %note, %note-green; } | 5 | .api_stability_3, .api_stability_4 { @extend %note, %note-green; } |
| @@ -13,5 +14,11 @@ · 8 unmodified lines | |||
| 13 | white-space: normal; | 14 | white-space: normal; |
| 14 | @extend %label; | 15 | @extend %label; |
| 15 | } | 16 | } |
| 17 | |||
| 18 | .api_metadata { | ||
| 19 | float: right; | ||
| 20 | margin: 0 0 1em 1em; | ||
| 21 | @extend %label; | ||
| 22 | } | ||
| 16 | } | 23 | } |
| 17 | 24 | ||
| @@ -16,14 +16,14 @@ module Docs · 15 unmodified lines | |||
| 16 | 16 | ||
| 17 | css('pre').each do |node| | 17 | css('pre').each do |node| |
| 18 | if lang = node.at_css('code')['class'] | 18 | if lang = node.at_css('code')['class'] |
| 19 | node['data-language'] = lang | 19 | node['data-language'] = lang.remove('lang-') |
| 20 | end | 20 | end |
| 21 | 21 | ||
| 22 | node.content = node.content | 22 | node.content = node.content |
| 23 | end | 23 | end |
| 24 | 24 | ||
| 25 | css('.__cf_email__').each do |node| | 25 | css('.__cf_email__').each do |node| |
| 26 | node.replace('pass@host.com') | 26 | node.replace(decode_cloudflare_email(node['data-cfemail'])) |
| 27 | end | 27 | end |
| 28 | 28 | ||
| 29 | doc | 29 | doc |
| @@ -23,12 +23,12 @@ module Docs · 22 unmodified lines | |||
| 23 | HTML | 23 | HTML |
| 24 | 24 | ||
| 25 | version do | 25 | version do |
| 26 | self.release = '6.0.0' | 26 | self.release = '6.2.0' |
| 27 | self.base_url = 'https://nodejs.org/api/' | 27 | self.base_url = 'https://nodejs.org/api/' |
| 28 | end | 28 | end |
| 29 | 29 | ||
| 30 | version '4 LTS' do | 30 | version '4 LTS' do |
| 31 | self.release = '4.4.3' | 31 | self.release = '4.4.5' |
| 32 | self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/" | 32 | self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/" |
| 33 | end | 33 | end |
| 34 | end | 34 | end |