Pārlūkot izejas kodu

Fix document style

Fix some 'pre' tags that lost their style
MasterEnoc 5 gadi atpakaļ
vecāks
revīzija
b97128f5b9
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      lib/docs/filters/rethinkdb/clean_html.rb

+ 2 - 4
lib/docs/filters/rethinkdb/clean_html.rb

@@ -19,10 +19,6 @@ module Docs
           node.content = node.content
         end
 
-        css('.highlight', 'section', 'div.highlighter-rouge', 'a > p', 'li > h1').each do |node|
-          node.before(node.children).remove
-        end
-
         css('h2, h3, h4').each do |node|
           node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
         end
@@ -46,6 +42,8 @@ module Docs
 
         css('> .infobox:last-child:contains("Contribute:")').remove
 
+        css('.additional-help').remove
+
         doc
       end
     end