[devdocsgjs/main: 5/12] Update Matplotlib documentation (3.6.0)




commit 06c37d52d7656afea3de236b8d89ca4e0816a55c
Author: Simon Legner <Simon Legner gmail com>
Date:   Tue Sep 20 22:59:46 2022 +0200

    Update Matplotlib documentation (3.6.0)

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 lib/docs/filters/matplotlib/entries.rb               |  1 +
 lib/docs/scrapers/matplotlib.rb                      | 11 ++++++++++-
 3 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 103d3cbe..06ab0099 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -553,7 +553,7 @@ credits = [
     'https://daringfireball.net/projects/markdown/license'
   ], [
     'Matplotlib',
-    '2012-2021 Matplotlib Development Team. All rights reserved.',
+    '2012-2022 Matplotlib Development Team. All rights reserved.',
     'Custom',
     'https://raw.githubusercontent.com/matplotlib/matplotlib/master/LICENSE/LICENSE'
   ], [
diff --git a/lib/docs/filters/matplotlib/entries.rb b/lib/docs/filters/matplotlib/entries.rb
index c8e60ed6..98b65956 100644
--- a/lib/docs/filters/matplotlib/entries.rb
+++ b/lib/docs/filters/matplotlib/entries.rb
@@ -18,6 +18,7 @@ module Docs
         name.remove! 'mpl_toolkits.'
         name.remove! ' API'
         name.remove! %r{ \(.*\)}
+        name.remove! %r{#$} # headerlink
         name
       end
 
diff --git a/lib/docs/scrapers/matplotlib.rb b/lib/docs/scrapers/matplotlib.rb
index a2add6bf..e262b3aa 100644
--- a/lib/docs/scrapers/matplotlib.rb
+++ b/lib/docs/scrapers/matplotlib.rb
@@ -16,10 +16,19 @@ module Docs
     options[:skip] = %w(api_changes.html tutorial.html faq.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2012&ndash;2021 Matplotlib Development Team. All rights reserved.<br>
+      &copy; 2012&ndash;2022 Matplotlib Development Team. All rights reserved.<br>
       Licensed under the Matplotlib License Agreement.
     HTML
 
+    version '3.6' do
+      self.release = '3.6.0'
+      self.base_urls = [
+        "https://matplotlib.org/stable/api/";,
+        "https://matplotlib.org/stable/mpl_toolkits/mplot3d/";,
+        "https://matplotlib.org/stable/mpl_toolkits/axes_grid/api/";
+      ]
+    end
+
     version '3.5' do
       self.release = '3.5.1'
       self.base_urls = [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]