[devdocsgjs/main: 1285/1867] Remove images in the root page and improve style.




commit 34aeb5f9a2c628846fa6132455a64eb532ca6bd4
Author: MasterEnoc <brianhernandez222 hotmail com>
Date:   Mon Nov 23 11:22:15 2020 -0600

    Remove images in the root page and improve style.
    
    - Fix pages with tables where information lacked spaces.

 lib/docs/filters/pandas/clean_html.rb | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/lib/docs/filters/pandas/clean_html.rb b/lib/docs/filters/pandas/clean_html.rb
index 2234945d..5b0186e7 100644
--- a/lib/docs/filters/pandas/clean_html.rb
+++ b/lib/docs/filters/pandas/clean_html.rb
@@ -3,10 +3,21 @@ module Docs
     class CleanHtmlFilter < Filter
       def call
 
+        if root_page?
+          css('img').remove
+        end
+
         css('#navbar-main').remove
 
         css('form').remove
 
+        # add ':' to '.classifier' clases
+        css('.classifier').each do |node|
+          text = node.content
+          node.content = ':' + text
+          node.content = node.content.gsub(/::/, ' : ')
+        end
+
         # sidebar
         css('ul.nav.bd-sidenav').remove
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]