[devdocsgjs/main: 24/239] Update NumPy documentation (1.21.4)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 24/239] Update NumPy documentation (1.21.4)
- Date: Fri, 8 Apr 2022 07:47:33 +0000 (UTC)
commit 488a5964283b24f4fd9e3647e575aa4a0ef6de55
Author: Simon Legner <Simon Legner gmail com>
Date: Sun Nov 28 12:02:53 2021 +0100
Update NumPy documentation (1.21.4)
Fixes #1650.
lib/docs/filters/sphinx/clean_html.rb | 1 +
lib/docs/scrapers/numpy.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/sphinx/clean_html.rb b/lib/docs/filters/sphinx/clean_html.rb
index ce06f3fe..048f6d3b 100644
--- a/lib/docs/filters/sphinx/clean_html.rb
+++ b/lib/docs/filters/sphinx/clean_html.rb
@@ -59,6 +59,7 @@ module Docs
css('dt').each do |node|
next if current_url.host == 'matplotlib.org'
+ next if current_url.host == 'numpy.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/numpy.rb b/lib/docs/scrapers/numpy.rb
index e73ef379..cebd8ee7 100644
--- a/lib/docs/scrapers/numpy.rb
+++ b/lib/docs/scrapers/numpy.rb
@@ -27,7 +27,7 @@ module Docs
HTML
version '1.21' do
- self.release = '1.21.1'
+ self.release = '1.21.4'
self.base_url = "https://numpy.org/doc/#{self.version}/"
options[:container] = nil
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]