diff --git a/lib/docs/filters/fastapi/clean_html.rb b/lib/docs/filters/fastapi/clean_html.rb
index f9fc7cdb..44e6a62d 100644
--- a/lib/docs/filters/fastapi/clean_html.rb
+++ b/lib/docs/filters/fastapi/clean_html.rb
@@ -3,8 +3,10 @@ module Docs
class CleanHtmlFilter < Filter
def call
- doc.css('.headerlink').each do |node|
- node.remove
+ doc.css('.headerlink').remove
+
+ if root_page?
+ doc.css('#sponsors ~ p', '#sponsors').remove
end
doc.css('.tabbed-set').each do |node|