From 501098a02bcccd09895297171fb07c9896e0ffba Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 18 Aug 2024 11:52:22 +0200 Subject: [PATCH] astro: clean --- lib/docs/filters/astro/clean_html.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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