From e586fe402d9df558b600db53e12752dfcd2baa61 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 9 Apr 2017 12:51:11 -0400 Subject: [PATCH] Update Vue.js documentation (2.2.6) Fixes #607. --- lib/docs/filters/vue/clean_html.rb | 6 +++++- lib/docs/scrapers/vue.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/vue/clean_html.rb b/lib/docs/filters/vue/clean_html.rb index 84c5020f..9c11608a 100644 --- a/lib/docs/filters/vue/clean_html.rb +++ b/lib/docs/filters/vue/clean_html.rb @@ -5,10 +5,14 @@ module Docs @doc = at_css('.content') at_css('h1').content = 'Vue.js' if root_page? - doc.child.before('

Vue.js API

') if slug == 'api/' + doc.child.before('

Vue.js API

') if slug == 'api/' || slug == 'api/index' css('.demo', '.guide-links', '.footer', '#ad').remove + css('.__cf_email__').each do |node| + node.replace(decode_cloudflare_email(node['data-cfemail'])) + end + # Remove code highlighting css('figure').each do |node| node.name = 'pre' diff --git a/lib/docs/scrapers/vue.rb b/lib/docs/scrapers/vue.rb index 9a092370..6872074f 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.2.5' + self.release = '2.2.6' self.base_url = 'https://vuejs.org/v2/' self.root_path = 'guide/index.html' self.initial_paths = %w(api/)