diff --git a/assets/javascripts/views/pages/javascript.coffee b/assets/javascripts/views/pages/javascript.coffee index d70988e4..2cffbd49 100644 --- a/assets/javascripts/views/pages/javascript.coffee +++ b/assets/javascripts/views/pages/javascript.coffee @@ -23,6 +23,7 @@ app.views.MarionettePage = app.views.ModernizrPage = app.views.MomentPage = app.views.MongoosePage = +app.views.NodePage = app.views.RethinkdbPage = app.views.SinonPage = app.views.UnderscorePage = diff --git a/assets/javascripts/views/pages/node.coffee b/assets/javascripts/views/pages/node.coffee deleted file mode 100644 index 06616725..00000000 --- a/assets/javascripts/views/pages/node.coffee +++ /dev/null @@ -1,6 +0,0 @@ -#= require views/pages/base - -class app.views.NodePage extends app.views.BasePage - afterRender: -> - @highlightCode @findAll('pre > code'), 'javascript' - return diff --git a/assets/stylesheets/pages/_node.scss b/assets/stylesheets/pages/_node.scss index 89770537..fc35ba86 100644 --- a/assets/stylesheets/pages/_node.scss +++ b/assets/stylesheets/pages/_node.scss @@ -5,12 +5,8 @@ .api_stability_5 { @extend %note, %note-blue; } > h2 { @extend %block-heading; } - - > h3 { - margin: 2rem 0 1rem; - font-size: 1rem; - } - + > h3 { @extend %block-label, %label-blue; } + > h4 { @extend %block-label; } > h2 + h2, > h3 + h3 { margin-top: 0; } > p > code, .type { @@ -18,3 +14,4 @@ @extend %label; } } + diff --git a/lib/docs/filters/node/clean_html.rb b/lib/docs/filters/node/clean_html.rb index a8dba398..f2ab747f 100644 --- a/lib/docs/filters/node/clean_html.rb +++ b/lib/docs/filters/node/clean_html.rb @@ -8,6 +8,14 @@ module Docs node.parent.remove end + css('pre[class*="api_stability"]').each do |node| + node.name = 'div' + end + + css('pre').each do |node| + node.content = node.content + end + doc end end