[devdocsgjs/main: 1864/1867] Update Ansible documentation ()
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1864/1867] Update Ansible documentation ()
- Date: Fri, 19 Nov 2021 23:48:23 +0000 (UTC)
commit 2fa27c340451e1e08cc908ed1b90168ebaa03ccf
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Nov 18 02:32:27 2021 +0100
Update Ansible documentation ()
lib/docs/filters/ansible/entries.rb | 5 +++--
lib/docs/scrapers/ansible.rb | 4 ++++
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/ansible/entries.rb b/lib/docs/filters/ansible/entries.rb
index cf89e66b..a859754e 100644
--- a/lib/docs/filters/ansible/entries.rb
+++ b/lib/docs/filters/ansible/entries.rb
@@ -4,11 +4,12 @@ module Docs
def get_name
name = at_css('h1').content.strip
name.remove! "\u{00B6}"
+ name.remove! "\u{f0c1}"
name.remove! %r{ \- .*}
name.remove! 'Introduction To '
name.remove! %r{ Guide\z}
- if version == "2.10"
+ if version >= "2.10" || version == ""
if slug =~ /\Acollections\// and slug !~ /index$/
name = name.split('.')[2]
end
@@ -28,7 +29,7 @@ module Docs
end
end
- if version >= "2.10"
+ if version >= "2.10" || version == ""
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 ff43e90d..7b021b26 100644
--- a/lib/docs/scrapers/ansible.rb
+++ b/lib/docs/scrapers/ansible.rb
@@ -32,6 +32,10 @@ module Docs
/\Aroadmap.*/i,
]
+ version do
+ self.base_url = "https://docs.ansible.com/ansible/latest/"
+ end
+
version '2.11' do
self.release = '2.11.0'
self.base_url = "https://docs.ansible.com/ansible/#{version}/"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]