|
|
@ -2,11 +2,12 @@ module Docs
|
|
|
|
class Erlang
|
|
|
|
class Erlang
|
|
|
|
class CleanHtmlFilter < Filter
|
|
|
|
class CleanHtmlFilter < Filter
|
|
|
|
def call
|
|
|
|
def call
|
|
|
|
@doc = at_css('#content .innertube', '#content')
|
|
|
|
@doc = at_css('#content .innertube:only-child', '#content')
|
|
|
|
|
|
|
|
|
|
|
|
# frontpage
|
|
|
|
# frontpage
|
|
|
|
|
|
|
|
|
|
|
|
css('center:last-child').remove # copyright
|
|
|
|
css('center:last-child').remove # copyright
|
|
|
|
|
|
|
|
css('.footer').remove # copyright
|
|
|
|
|
|
|
|
|
|
|
|
css('center', '.example').each do |node|
|
|
|
|
css('center', '.example').each do |node|
|
|
|
|
node.before(node.children).remove
|
|
|
|
node.before(node.children).remove
|
|
|
|