Explorar o código

Update pandas documentation (1.2.0)

Simon Legner %!s(int64=5) %!d(string=hai) anos
pai
achega
fb113d3f54
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  1. 5 0
      lib/docs/filters/pandas/clean_html.rb
  2. 1 1
      lib/docs/scrapers/pandas.rb

+ 5 - 0
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
 

+ 1 - 1
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'