Update Ansible documentation (2.11.0)

pull/1541/head
Simon Legner 4 years ago
parent 609191bcc1
commit 206f915f89

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

@ -28,7 +28,7 @@ module Docs
end end
end end
if version == "2.10" if version >= "2.10"
if slug =~ /\Acollections\// if slug =~ /\Acollections\//
return "Collection #{slug.split('/')[1..-2].join(".")}" return "Collection #{slug.split('/')[1..-2].join(".")}"
end end

@ -11,7 +11,7 @@ module Docs
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2012&ndash;2018 Michael DeHaan<br> &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. Licensed under the GNU General Public License version 3.
HTML HTML
@ -32,6 +32,11 @@ module Docs
/\Aroadmap.*/i, /\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 version '2.10' do
self.release = '2.10.5' self.release = '2.10.5'
self.base_url = "https://docs.ansible.com/ansible/#{version}/" self.base_url = "https://docs.ansible.com/ansible/#{version}/"

Loading…
Cancel
Save