Unified · Split
| @@ -4,11 +4,12 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def get_name |
| 5 | 5 | name = at_css('h1').content.strip |
| 6 | 6 | name.remove! "\u{00B6}" |
| 7 | + name.remove! "\u{f0c1}" | |
| 7 | 8 | name.remove! %r{ \- .*} |
| 8 | 9 | name.remove! 'Introduction To ' |
| 9 | 10 | name.remove! %r{ Guide\z} |
| 10 | 11 | |
| 11 | − if version == "2.10" | |
| 12 | + if version >= "2.10" || version == "" | |
| 12 | 13 | if slug =~ /\Acollections\// and slug !~ /index$/ |
| 13 | 14 | name = name.split('.')[2] |
| 14 | 15 | end |
| @@ -28,7 +29,7 @@ module Docs · 13 unmodified lines | ||
| 28 | 29 | end |
| 29 | 30 | end |
| 30 | 31 | |
| 31 | − if version >= "2.10" | |
| 32 | + if version >= "2.10" || version == "" | |
| 32 | 33 | if slug =~ /\Acollections\// |
| 33 | 34 | return "Collection #{slug.split('/')[1..-2].join(".")}" |
| 34 | 35 | end |
| @@ -32,6 +32,10 @@ module Docs · 31 unmodified lines | ||
| 32 | 32 | /\Aroadmap.*/i, |
| 33 | 33 | ] |
| 34 | 34 | |
| 35 | + version do | |
| 36 | + self.base_url = "https://docs.ansible.com/ansible/latest/" | |
| 37 | + end | |
| 38 | + | |
| 35 | 39 | version '2.11' do |
| 36 | 40 | self.release = '2.11.0' |
| 37 | 41 | self.base_url = "https://docs.ansible.com/ansible/#{version}/" |