소스 검색

Update pandas documentation (1.2.0)

Simon Legner 5 년 전
부모
커밋
fb113d3f54
2개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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'