Browse Source

astro: clean

Simon Legner 1 năm trước cách đây
mục cha
commit
501098a02b
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      lib/docs/filters/astro/clean_html.rb

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

@@ -9,8 +9,8 @@ module Docs
         css('.anchor-link').remove
         css('.avatar-list').remove
 
-        css('header > h1').each do |node|
-          node.parent.before(node).remove
+        css('div > div > h1').each do |node|
+          node.parent.parent.before(node).remove
         end
 
         css('pre').each do |node|
@@ -31,6 +31,8 @@ module Docs
 
         css('.copy-button-wrapper, .copy-button-tooltip').remove
 
+        css('footer ~ section', 'footer').remove
+
         doc
       end
     end