remove stylings, breadcrumbs

pull/2375/head
Gergely Gombos 2 months ago
parent 75cce72b3f
commit 60c02cf69f

@ -4,6 +4,21 @@ module Docs
def call
@doc = at_css('article')
# Remove breadcrumbs before h1
css('h1').each do |node|
node.previous.remove
end
# Remove prev-next links
css('div.grid > a').each do |node|
node.remove
end
# Remove styling divs
css('div[class*="ps-0"]', 'div[class*="mx-"]', 'div[class*="px-"]', 'div[class=""]', 'div.cm-line').each do |node|
node.before(node.children).remove
end
doc
end
end

Loading…
Cancel
Save