[devdocsgjs/main: 1447/1867] Update pandas documentation (1.2.0)




commit fb113d3f54f3b7c9e494f2629fdb99002b545370
Author: Simon Legner <Simon Legner gmail com>
Date:   Sun Jan 3 09:06:22 2021 +0100

    Update pandas documentation (1.2.0)

 lib/docs/filters/pandas/clean_html.rb | 5 +++++
 lib/docs/scrapers/pandas.rb           | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/pandas/clean_html.rb b/lib/docs/filters/pandas/clean_html.rb
index 5b0186e7..4b0fd3bf 100644
--- a/lib/docs/filters/pandas/clean_html.rb
+++ b/lib/docs/filters/pandas/clean_html.rb
@@ -18,6 +18,11 @@ module Docs
           node.content = node.content.gsub(/::/, ' : ')
         end
 
+        css('.highlight pre').each do |node|
+          node.content = node.content
+          node['data-language'] = 'python'
+        end
+
         # sidebar
         css('ul.nav.bd-sidenav').remove
 
diff --git a/lib/docs/scrapers/pandas.rb b/lib/docs/scrapers/pandas.rb
index 99f31e25..b1eccb71 100644
--- a/lib/docs/scrapers/pandas.rb
+++ b/lib/docs/scrapers/pandas.rb
@@ -19,7 +19,7 @@ module Docs
     HTML
 
     version '1' do
-      self.release = '1.1.4'
+      self.release = '1.2.0'
       self.base_url = "https://pandas.pydata.org/pandas-docs/version/#{self.release}/";
 
       html_filters.push 'pandas/clean_html', 'pandas/entries'


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