History

Update Matplotlib documentation (3.4.3)

Fixes #1650.

Simon Legner committed 4 years ago

Commit f4ca6ce1 parent b87359a3 files · +4 −1Browse files

Unified · Split

3 files
  1. assets/stylesheets/pages/_sphinx.scss +2 −0
  2. lib/docs/filters/sphinx/clean_html.rb +1 −0
  3. lib/docs/scrapers/matplotlib.rb +1 −1
assets/stylesheets/pages/_sphinx.scss+2−0
@@ -39,6 +39,8 @@ · 38 unmodified lines
39 .admonition-title + dl { padding-top: .5em; }39 .admonition-title + dl { padding-top: .5em; }
40 40
41 td > div { margin: 0 !important; }41 td > div { margin: 0 !important; }
42
43 .classifier:before { content:": " }
42}44}
43 45
44._sphinx {46._sphinx {
lib/docs/filters/sphinx/clean_html.rb+1−0
@@ -58,6 +58,7 @@ module Docs · 57 unmodified lines
58 end58 end
59 59
60 css('dt').each do |node|60 css('dt').each do |node|
61 next if current_url.host == 'matplotlib.org'
61 next unless node['id'] || node.at_css('code, .classifier')62 next unless node['id'] || node.at_css('code, .classifier')
62 links = []63 links = []
63 links << node.children.last.remove while node.children.last.try(:name) == 'a'64 links << node.children.last.remove while node.children.last.try(:name) == 'a'
lib/docs/scrapers/matplotlib.rb+1−1
@@ -21,7 +21,7 @@ module Docs · 20 unmodified lines
21 HTML21 HTML
22 22
23 version '3.4' do23 version '3.4' do
24 self.release = '3.4.1'24 self.release = '3.4.3'
25 self.base_urls = [25 self.base_urls = [
26 "https://matplotlib.org/#{release}/api/",26 "https://matplotlib.org/#{release}/api/",
27 "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",27 "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",