Browse Source

Update Ansible documentation (2.4.3)

Fixes #752.
Thibaut Courouble 7 years ago
parent
commit
1be7a8f37d

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -92,7 +92,7 @@ credits = [
     'https://creativecommons.org/licenses/by/4.0/'
   ], [
     'Ansible',
-    '2012-2017 Michael DeHaan<br>&copy; 2017 Red Hat, Inc.',
+    '2012-2018 Michael DeHaan<br>&copy; 2018 Red Hat, Inc.',
     'GPLv3',
     'https://raw.githubusercontent.com/ansible/ansible/devel/COPYING'
   ], [

+ 7 - 4
lib/docs/scrapers/ansible.rb

@@ -2,8 +2,6 @@ module Docs
   class Ansible < UrlScraper
     self.name = 'Ansible'
     self.type = 'sphinx'
-    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'
@@ -20,9 +18,14 @@ module Docs
       list_of_all_modules.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2012&ndash;2017 Michael DeHaan<br>
-      &copy; 2017 Red Hat, Inc.<br>
+      &copy; 2012&ndash;2018 Michael DeHaan<br>
+      &copy; 2018 Red Hat, Inc.<br>
       Licensed under the GNU General Public License version 3.
     HTML
+
+    version '2.4' do
+      self.release = '2.4.3'
+      self.base_url = 'https://docs.ansible.com/ansible/2.4/'
+    end
   end
 end