Skip to content

Commit 501098a

Browse files
committed
astro: clean
1 parent a4aafb8 commit 501098a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/docs/filters/astro/clean_html.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def call
99
css('.anchor-link').remove
1010
css('.avatar-list').remove
1111

12-
css('header > h1').each do |node|
13-
node.parent.before(node).remove
12+
css('div > div > h1').each do |node|
13+
node.parent.parent.before(node).remove
1414
end
1515

1616
css('pre').each do |node|
@@ -31,6 +31,8 @@ def call
3131

3232
css('.copy-button-wrapper, .copy-button-tooltip').remove
3333

34+
css('footer ~ section', 'footer').remove
35+
3436
doc
3537
end
3638
end

0 commit comments

Comments
 (0)