Unified · Split
| @@ -23,6 +23,7 @@ app.views.MarionettePage = · 22 unmodified lines | |||
| 23 | app.views.ModernizrPage = | 23 | app.views.ModernizrPage = |
| 24 | app.views.MomentPage = | 24 | app.views.MomentPage = |
| 25 | app.views.MongoosePage = | 25 | app.views.MongoosePage = |
| 26 | app.views.NodePage = | ||
| 26 | app.views.RethinkdbPage = | 27 | app.views.RethinkdbPage = |
| 27 | app.views.SinonPage = | 28 | app.views.SinonPage = |
| 28 | app.views.UnderscorePage = | 29 | app.views.UnderscorePage = |
| @@ -1,6 +0,0 @@ | |||
| 1 | #= require views/pages/base | ||
| 2 | |||
| 3 | class app.views.NodePage extends app.views.BasePage | ||
| 4 | afterRender: -> | ||
| 5 | @highlightCode @findAll('pre > code'), 'javascript' | ||
| 6 | return | ||
| @@ -5,12 +5,8 @@ · 4 unmodified lines | |||
| 5 | .api_stability_5 { @extend %note, %note-blue; } | 5 | .api_stability_5 { @extend %note, %note-blue; } |
| 6 | 6 | ||
| 7 | > h2 { @extend %block-heading; } | 7 | > h2 { @extend %block-heading; } |
| 8 | 8 | > h3 { @extend %block-label, %label-blue; } | |
| 9 | > h3 { | 9 | > h4 { @extend %block-label; } |
| 10 | margin: 2rem 0 1rem; | ||
| 11 | font-size: 1rem; | ||
| 12 | } | ||
| 13 | |||
| 14 | > h2 + h2, > h3 + h3 { margin-top: 0; } | 10 | > h2 + h2, > h3 + h3 { margin-top: 0; } |
| 15 | 11 | ||
| 16 | > p > code, .type { | 12 | > p > code, .type { |
| @@ -18,3 +14,4 @@ · 1 unmodified line | |||
| 18 | @extend %label; | 14 | @extend %label; |
| 19 | } | 15 | } |
| 20 | } | 16 | } |
| 17 | |||
| @@ -8,6 +8,14 @@ module Docs · 7 unmodified lines | |||
| 8 | node.parent.remove | 8 | node.parent.remove |
| 9 | end | 9 | end |
| 10 | 10 | ||
| 11 | css('pre[class*="api_stability"]').each do |node| | ||
| 12 | node.name = 'div' | ||
| 13 | end | ||
| 14 | |||
| 15 | css('pre').each do |node| | ||
| 16 | node.content = node.content | ||
| 17 | end | ||
| 18 | |||
| 11 | doc | 19 | doc |
| 12 | end | 20 | end |
| 13 | end | 21 | end |