diff --git a/lib/docs/filters/astro/clean_html.rb b/lib/docs/filters/astro/clean_html.rb
index 2b65e631..8d654322 100644
--- a/lib/docs/filters/astro/clean_html.rb
+++ b/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