History

Remove images in the root page and improve style.

- Fix pages with tables where information lacked spaces.

MasterEnoc committed 5 years ago

Commit 34aeb5f1 parent 9c2ca1f1 file · +11 −0Browse files

Unified · Split

lib/docs/filters/pandas/clean_html.rb+11−0
@@ -3,10 +3,21 @@ module Docs · 2 unmodified lines
33 class CleanHtmlFilter < Filter
44 def call
55
6+ if root_page?
7+ css('img').remove
8+ end
9+
610 css('#navbar-main').remove
711
812 css('form').remove
913
14+ # add ':' to '.classifier' clases
15+ css('.classifier').each do |node|
16+ text = node.content
17+ node.content = ':' + text
18+ node.content = node.content.gsub(/::/, ' : ')
19+ end
20+
1021 # sidebar
1122 css('ul.nav.bd-sidenav').remove
1223