فهرست منبع

Merge pull request #1467 from MasterEnoc/issues

Fix miss-formatted text in ansible
Simon Legner 4 سال پیش
والد
کامیت
df5a45c657
2فایلهای تغییر یافته به همراه11 افزوده شده و 2 حذف شده
  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