diff --git a/lib/docs/filters/ansible/clean_html.rb b/lib/docs/filters/ansible/clean_html.rb index f24d0d01..2eb56df2 100644 --- a/lib/docs/filters/ansible/clean_html.rb +++ b/lib/docs/filters/ansible/clean_html.rb @@ -4,6 +4,10 @@ module Docs def call @doc = at_css('#page-content') + css('.__cf_email__').each do |node| + node.replace(decode_cloudflare_email(node['data-cfemail'])) + end + doc end end diff --git a/lib/docs/scrapers/ansible.rb b/lib/docs/scrapers/ansible.rb index 43132cc5..dad56cbc 100644 --- a/lib/docs/scrapers/ansible.rb +++ b/lib/docs/scrapers/ansible.rb @@ -2,8 +2,8 @@ module Docs class Ansible < UrlScraper self.name = 'Ansible' self.type = 'sphinx' - self.release = '2.3.1' - self.base_url = 'https://docs.ansible.com/ansible/' + self.release = '2.4.0' + self.base_url = 'https://docs.ansible.com/ansible/latest/' self.links = { home: 'https://www.ansible.com/', code: 'https://github.com/ansible/ansible'