[devdocsgjs/main: 1119/1867] Update Ansible scrapers
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1119/1867] Update Ansible scrapers
- Date: Fri, 19 Nov 2021 23:47:45 +0000 (UTC)
commit ca3b54f566381e6a5c3917979c62e7d1ddbc20ed
Author: Phil Scherer <pnscher evoforge org>
Date: Tue Nov 10 20:34:25 2020 +0000
Update Ansible scrapers
lib/docs/filters/ansible/entries.rb | 13 +++++++++++++
lib/docs/scrapers/ansible.rb | 11 ++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/lib/docs/filters/ansible/entries.rb b/lib/docs/filters/ansible/entries.rb
index d1097b99..a2af6062 100644
--- a/lib/docs/filters/ansible/entries.rb
+++ b/lib/docs/filters/ansible/entries.rb
@@ -7,6 +7,13 @@ module Docs
name.remove! %r{ \- .*}
name.remove! 'Introduction To '
name.remove! %r{ Guide\z}
+
+ if version == "2.10"
+ if slug =~ /\Acollections\// and slug !~ /index$/
+ name = name.split('.')[2]
+ end
+ end
+
name
end
@@ -21,6 +28,12 @@ module Docs
end
end
+ if version == "2.10"
+ if slug =~ /\Acollections\//
+ return "Collection #{slug.split('/')[1..-2].join(".")}"
+ end
+ end
+
if slug =~ /\Acli\//
'CLI Reference'
elsif slug =~ /\Anetwork\//
diff --git a/lib/docs/scrapers/ansible.rb b/lib/docs/scrapers/ansible.rb
index 5a19e393..d839095a 100644
--- a/lib/docs/scrapers/ansible.rb
+++ b/lib/docs/scrapers/ansible.rb
@@ -30,18 +30,23 @@ module Docs
/\Aroadmap.*/i,
]
+ version '2.10' do
+ self.release = '2.10.3'
+ self.base_url = "https://docs.ansible.com/ansible/#{version}/"
+ end
+
version '2.9' do
- self.release = '2.9.1'
+ self.release = '2.9.15'
self.base_url = "https://docs.ansible.com/ansible/#{version}/"
end
version '2.8' do
- self.release = '2.8.7'
+ self.release = '2.8.16'
self.base_url = "https://docs.ansible.com/ansible/#{version}/"
end
version '2.7' do
- self.release = '2.7.15'
+ self.release = '2.7.17'
self.base_url = "https://docs.ansible.com/ansible/#{version}/"
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]