From bb35dd882499e3def14dd370dc90aca5859f84c9 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 27 Nov 2016 10:47:17 -0500 Subject: [PATCH] Update Vue.js documentation (2.1.3, 1.0.28) --- lib/docs/filters/vue/clean_html.rb | 4 ++++ lib/docs/scrapers/vue.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/vue/clean_html.rb b/lib/docs/filters/vue/clean_html.rb index b355fb32..30910df7 100644 --- a/lib/docs/filters/vue/clean_html.rb +++ b/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 diff --git a/lib/docs/scrapers/vue.rb b/lib/docs/scrapers/vue.rb index bf88c579..c7321092 100644 --- a/lib/docs/scrapers/vue.rb +++ b/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)