Explorar el Código

Fix issue 1466, miss-formatted text in ansible

Enoc hace 4 años
padre
commit
1ef718bd9c
Se han modificado 2 ficheros con 11 adiciones y 2 borrados
  1. 7 0
      lib/docs/filters/ansible/clean_html.rb
  2. 4 2
      lib/docs/scrapers/ansible.rb

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

+ 4 - 2
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