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