From 206f915f890f20f452ab11b7d108b55d84af26a5 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 5 May 2021 07:32:02 +0200 Subject: [PATCH] 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
© 2018–2019 Red Hat, Inc.', + '2012-2018 Michael DeHaan
© 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 © 2012–2018 Michael DeHaan
- © 2018–2019 Red Hat, Inc.
+ © 2018–2021 Red Hat, Inc.
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}/"