From 4c88173d9525b011b821b5b9eda9c06f6a0fcf84 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 4 Nov 2018 10:09:58 -0500 Subject: [PATCH] Update Matplotlib documentation (3.0.0) --- .../templates/pages/about_tmpl.coffee | 2 +- lib/docs/scrapers/matplotlib.rb | 40 ++++++++++++++----- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index ba0cbc8c..418527f8 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -442,7 +442,7 @@ credits = [ 'https://daringfireball.net/projects/markdown/license' ], [ 'Matplotlib', - '2012-2017 Matplotlib Development Team. All rights reserved.', + '2012-2018 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 0e50a7f7..ddd1f9de 100644 --- a/lib/docs/scrapers/matplotlib.rb +++ b/lib/docs/scrapers/matplotlib.rb @@ -6,7 +6,7 @@ module Docs self.type = 'sphinx' self.root_path = 'index.html' self.links = { - home: 'http://matplotlib.org/', + home: 'https://matplotlib.org/', code: 'https://github.com/matplotlib/matplotlib' } @@ -16,34 +16,52 @@ module Docs options[:skip] = %w(api_changes.html tutorial.html faq.html) options[:attribution] = <<-HTML - © 2012–2017 Matplotlib Development Team. All rights reserved.
+ © 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement. HTML + version '3.0' do + self.release = '3.0.0' + 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 '2.2' do + self.release = '2.2.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 '2.1' do self.release = '2.1.0' self.base_urls = [ - "http://matplotlib.org/#{release}/api/", - "http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/", - "http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/" + "https://matplotlib.org/#{release}/api/", + "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/", + "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/" ] end version '2.0' do self.release = '2.0.2' self.base_urls = [ - "http://matplotlib.org/#{release}/api/", - "http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/", - "http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/" + "https://matplotlib.org/#{release}/api/", + "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/", + "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/" ] end version '1.5' do self.release = '1.5.3' self.base_urls = [ - "http://matplotlib.org/#{release}/api/", - "http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/", - "http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/" + "https://matplotlib.org/#{release}/api/", + "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/", + "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/" ] end end