[devdocsgjs/main: 1641/1867] Update Ansible documentation (2.11.0)




commit 206f915f890f20f452ab11b7d108b55d84af26a5
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed May 5 07:32:02 2021 +0200

    Update Ansible documentation (2.11.0)

 assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
 lib/docs/filters/ansible/entries.rb                  | 2 +-
 lib/docs/scrapers/ansible.rb                         | 7 ++++++-
 3 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index bfc61642..686b9ba1 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -93,7 +93,7 @@ credits = [
     'https://creativecommons.org/licenses/by/4.0/'
   ], [
     'Ansible',
-    '2012-2018 Michael DeHaan<br>&copy; 2018–2019 Red Hat, Inc.',
+    '2012-2018 Michael DeHaan<br>&copy; 2018–2021 Red Hat, Inc.',
     'GPLv3',
     'https://raw.githubusercontent.com/ansible/ansible/devel/COPYING'
   ], [
diff --git a/lib/docs/filters/ansible/entries.rb b/lib/docs/filters/ansible/entries.rb
index a2af6062..cf89e66b 100644
--- a/lib/docs/filters/ansible/entries.rb
+++ b/lib/docs/filters/ansible/entries.rb
@@ -28,7 +28,7 @@ module Docs
           end
         end
 
-        if version == "2.10"
+        if version >= "2.10"
           if slug =~ /\Acollections\//
             return "Collection #{slug.split('/')[1..-2].join(".")}"
           end
diff --git a/lib/docs/scrapers/ansible.rb b/lib/docs/scrapers/ansible.rb
index 9d9fab64..ff43e90d 100644
--- a/lib/docs/scrapers/ansible.rb
+++ b/lib/docs/scrapers/ansible.rb
@@ -11,7 +11,7 @@ module Docs
 
     options[:attribution] = <<-HTML
       &copy; 2012&ndash;2018 Michael DeHaan<br>
-      &copy; 2018&ndash;2019 Red Hat, Inc.<br>
+      &copy; 2018&ndash;2021 Red Hat, Inc.<br>
       Licensed under the GNU General Public License version 3.
     HTML
 
@@ -32,6 +32,11 @@ module Docs
       /\Aroadmap.*/i,
     ]
 
+    version '2.11' do
+      self.release = '2.11.0'
+      self.base_url = "https://docs.ansible.com/ansible/#{version}/";
+    end
+
     version '2.10' do
       self.release = '2.10.5'
       self.base_url = "https://docs.ansible.com/ansible/#{version}/";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]