Unified · Split
| @@ -23,6 +23,7 @@ app.views.MarionettePage = · 22 unmodified lines | ||
| 23 | 23 | app.views.ModernizrPage = |
| 24 | 24 | app.views.MomentPage = |
| 25 | 25 | app.views.MongoosePage = |
| 26 | +app.views.NodePage = | |
| 26 | 27 | app.views.RethinkdbPage = |
| 27 | 28 | app.views.SinonPage = |
| 28 | 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 | 5 | .api_stability_5 { @extend %note, %note-blue; } |
| 6 | 6 | |
| 7 | 7 | > h2 { @extend %block-heading; } |
| 8 | − | |
| 9 | − > h3 { | |
| 10 | − margin: 2rem 0 1rem; | |
| 11 | − font-size: 1rem; | |
| 12 | − } | |
| 13 | − | |
| 8 | + > h3 { @extend %block-label, %label-blue; } | |
| 9 | + > h4 { @extend %block-label; } | |
| 14 | 10 | > h2 + h2, > h3 + h3 { margin-top: 0; } |
| 15 | 11 | |
| 16 | 12 | > p > code, .type { |
| @@ -18,3 +14,4 @@ · 1 unmodified line | ||
| 18 | 14 | @extend %label; |
| 19 | 15 | } |
| 20 | 16 | } |
| 17 | + | |
| @@ -8,6 +8,14 @@ module Docs · 7 unmodified lines | ||
| 8 | 8 | node.parent.remove |
| 9 | 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 | 19 | doc |
| 12 | 20 | end |
| 13 | 21 | end |