diff --git a/lib/docs/filters/symfony/clean_html.rb b/lib/docs/filters/symfony/clean_html.rb index 98f6aecc..7926b9a7 100644 --- a/lib/docs/filters/symfony/clean_html.rb +++ b/lib/docs/filters/symfony/clean_html.rb @@ -2,9 +2,11 @@ module Docs class Symfony class CleanHtmlFilter < Filter def call - css('.location', '#footer').remove + @doc = at_css('#page-content') - css('.header > h1').each do |node| + css('.location', '.no-description').remove + + css('.page-header > h1').each do |node| node.content = 'Symfony' if root_page? node.parent.before(node).remove end @@ -22,6 +24,13 @@ module Docs node.before(node.children).remove end + css('.container-fluid').each do |node| + html = node.inner_html + html.gsub! %r{