Przeglądaj źródła

Update Vue.js documentation (2.1.3, 1.0.28)

Thibaut Courouble 9 lat temu
rodzic
commit
bb35dd8824
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 4 0
      lib/docs/filters/vue/clean_html.rb
  2. 1 1
      lib/docs/scrapers/vue.rb

+ 4 - 0
lib/docs/filters/vue/clean_html.rb

@@ -15,6 +15,10 @@ module Docs
           node['data-language'] = node['class'][/highlight (\w+)/, 1]
         end
 
+        css('iframe').each do |node|
+          node['sandbox'] = 'allow-forms allow-scripts allow-same-origin'
+        end
+
         doc
       end
     end

+ 1 - 1
lib/docs/scrapers/vue.rb

@@ -18,7 +18,7 @@ module Docs
     HTML
 
     version '2' do
-      self.release = '2.0.8'
+      self.release = '2.1.3'
       self.base_url = 'https://vuejs.org/v2/'
       self.root_path = 'guide/index.html'
       self.initial_paths = %w(api/index.html)