|
|
@ -19,10 +19,6 @@ module Docs
|
|
|
|
node.content = node.content
|
|
|
|
node.content = node.content
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
css('.highlight', 'section', 'div.highlighter-rouge', 'a > p', 'li > h1').each do |node|
|
|
|
|
|
|
|
|
node.before(node.children).remove
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css('h2, h3, h4').each do |node|
|
|
|
|
css('h2, h3, h4').each do |node|
|
|
|
|
node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
|
|
|
|
node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -46,6 +42,8 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
css('> .infobox:last-child:contains("Contribute:")').remove
|
|
|
|
css('> .infobox:last-child:contains("Contribute:")').remove
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css('.additional-help').remove
|
|
|
|
|
|
|
|
|
|
|
|
doc
|
|
|
|
doc
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|