From f4ca6cec9f8c088f2efcb045376e07f352781a2e Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 28 Nov 2021 11:58:45 +0100 Subject: [PATCH] Update Matplotlib documentation (3.4.3) Fixes #1650. --- assets/stylesheets/pages/_sphinx.scss | 2 ++ lib/docs/filters/sphinx/clean_html.rb | 1 + lib/docs/scrapers/matplotlib.rb | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/stylesheets/pages/_sphinx.scss b/assets/stylesheets/pages/_sphinx.scss index 3e2c12c8..f5959d55 100644 --- a/assets/stylesheets/pages/_sphinx.scss +++ b/assets/stylesheets/pages/_sphinx.scss @@ -39,6 +39,8 @@ .admonition-title + dl { padding-top: .5em; } td > div { margin: 0 !important; } + + .classifier:before { content:": " } } ._sphinx { diff --git a/lib/docs/filters/sphinx/clean_html.rb b/lib/docs/filters/sphinx/clean_html.rb index 71720aca..ce06f3fe 100644 --- a/lib/docs/filters/sphinx/clean_html.rb +++ b/lib/docs/filters/sphinx/clean_html.rb @@ -58,6 +58,7 @@ module Docs end css('dt').each do |node| + next if current_url.host == 'matplotlib.org' next unless node['id'] || node.at_css('code, .classifier') links = [] links << node.children.last.remove while node.children.last.try(:name) == 'a' diff --git a/lib/docs/scrapers/matplotlib.rb b/lib/docs/scrapers/matplotlib.rb index a76dcc61..050ceb0e 100644 --- a/lib/docs/scrapers/matplotlib.rb +++ b/lib/docs/scrapers/matplotlib.rb @@ -21,7 +21,7 @@ module Docs HTML version '3.4' do - self.release = '3.4.1' + self.release = '3.4.3' self.base_urls = [ "https://matplotlib.org/#{release}/api/", "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",