瀏覽代碼

Merge pull request #1447 from simon04/matplotlib-3.3

Update Matplotlib documentation (3.3.3)
Simon Legner 5 年之前
父節點
當前提交
c0c5d6eaa5
共有 2 個文件被更改,包括 20 次插入2 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 19 1
      lib/docs/scrapers/matplotlib.rb

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -508,7 +508,7 @@ credits = [
     'https://daringfireball.net/projects/markdown/license'
   ], [
     'Matplotlib',
-    '2012-2018 Matplotlib Development Team. All rights reserved.',
+    '2012-2020 Matplotlib Development Team. All rights reserved.',
     'Custom',
     'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE'
   ], [

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

@@ -16,10 +16,28 @@ module Docs
     options[:skip] = %w(api_changes.html tutorial.html faq.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2012&ndash;2018 Matplotlib Development Team. All rights reserved.<br>
+      &copy; 2012&ndash;2020 Matplotlib Development Team. All rights reserved.<br>
       Licensed under the Matplotlib License Agreement.
     HTML
 
+    version '3.3' do
+      self.release = '3.3.3'
+      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.2' do
+      self.release = '3.2.2'
+      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.1' do
       self.release = '3.1.1'
       self.base_urls = [