[devdocsgjs/main: 1472/1867] Fix issue 1466, miss-formatted text in ansible




commit 1ef718bd9c126165ad22180e1badc8be60b0140d
Author: Enoc <brianhernandez222 hotmail com>
Date:   Fri Jan 22 12:06:50 2021 -0600

    Fix issue 1466, miss-formatted text in ansible

 lib/docs/filters/ansible/clean_html.rb | 7 +++++++
 lib/docs/scrapers/ansible.rb           | 6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/ansible/clean_html.rb b/lib/docs/filters/ansible/clean_html.rb
index df4370d7..27054785 100644
--- a/lib/docs/filters/ansible/clean_html.rb
+++ b/lib/docs/filters/ansible/clean_html.rb
@@ -8,7 +8,14 @@ module Docs
           node.before(node.children).remove
         end
 
+        css('.documentation-table').each do |node|
+          node.css('[style]').each do |subnode|
+            subnode.remove_attribute('style')
+          end
+        end
+
         doc
+
       end
     end
   end
diff --git a/lib/docs/scrapers/ansible.rb b/lib/docs/scrapers/ansible.rb
index 314da78f..9d9fab64 100644
--- a/lib/docs/scrapers/ansible.rb
+++ b/lib/docs/scrapers/ansible.rb
@@ -22,7 +22,9 @@ module Docs
       reference_appendices/tower.html
       user_guide/quickstart.html
       modules/modules_by_category.html
-      modules/list_of_all_modules.html)
+      modules/list_of_all_modules.html
+      collections/all_plugins.html
+      collections/index_vars.html)
 
     options[:skip_patterns] = [
       /\Acommunity.*/i,
@@ -31,7 +33,7 @@ module Docs
     ]
 
     version '2.10' do
-      self.release = '2.10.3'
+      self.release = '2.10.5'
       self.base_url = "https://docs.ansible.com/ansible/#{version}/";
     end
 


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