From 2eaf7cb894045623e2ab8358828cccde238d1163 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 27 Dec 2020 18:51:25 +0100 Subject: [PATCH] Update Matplotlib documentation (3.3.3) --- .../templates/pages/about_tmpl.coffee | 2 +- lib/docs/scrapers/matplotlib.rb | 20 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 217bb32b..39d552c1 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/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' ], [ diff --git a/lib/docs/scrapers/matplotlib.rb b/lib/docs/scrapers/matplotlib.rb index 96a64edb..0cf44c07 100644 --- a/lib/docs/scrapers/matplotlib.rb +++ b/lib/docs/scrapers/matplotlib.rb @@ -16,10 +16,28 @@ module Docs options[:skip] = %w(api_changes.html tutorial.html faq.html) options[:attribution] = <<-HTML - © 2012–2018 Matplotlib Development Team. All rights reserved.
+ © 2012–2020 Matplotlib Development Team. All rights reserved.
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 = [