Prechádzať zdrojové kódy

Update Matplotlib documentation (3.5.1)

Simon Legner 3 rokov pred
rodič
commit
b39b98d133

+ 4 - 0
assets/stylesheets/pages/_sphinx.scss

@@ -41,6 +41,10 @@
   td > div { margin: 0 !important; }
 
   .classifier:before { content:": " }
+
+  .property::after { content:" " }
+
+  span.descclassname, span.descname { font-family: var(--monoFont) }
 }
 
 ._sphinx {

+ 10 - 1
lib/docs/scrapers/matplotlib.rb

@@ -12,7 +12,7 @@ module Docs
 
     html_filters.push 'matplotlib/entries', 'sphinx/clean_html'
 
-    options[:container] = '.body'
+    options[:container] = '.body, section'
     options[:skip] = %w(api_changes.html tutorial.html faq.html)
 
     options[:attribution] = <<-HTML
@@ -20,6 +20,15 @@ module Docs
       Licensed under the Matplotlib License Agreement.
     HTML
 
+    version '3.5' do
+      self.release = '3.5.1'
+      self.base_urls = [
+        "https://matplotlib.org/#{release}/api/",
+        "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
+        "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
+      ]
+    end
+
     version '3.4' do
       self.release = '3.4.3'
       self.base_urls = [