瀏覽代碼

Update Ansible documentation (2.11.0)

Simon Legner 4 年之前
父節點
當前提交
206f915f89

+ 1 - 1
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'
   ], [

+ 1 - 1
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

+ 6 - 1
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}/"