From f0c16cb9943452e13bec4d9fd2b16a0a92437661 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Fri, 22 Oct 2021 21:42:31 +0200 Subject: [PATCH] Update Vue.js documentation (3.2.20) --- lib/docs/filters/vue/clean_html.rb | 9 +++++++++ lib/docs/scrapers/vue.rb | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/vue/clean_html.rb b/lib/docs/filters/vue/clean_html.rb index affde245..e05c081b 100644 --- a/lib/docs/filters/vue/clean_html.rb +++ b/lib/docs/filters/vue/clean_html.rb @@ -14,6 +14,15 @@ module Docs node.name = 'strong' end + # Remove CodePen div + css('.codepen').each do |node| + next if node.previous_element.nil? + span = node.css('span:contains("See the Pen")').remove + node.previous_element.add_child(' ') + node.previous_element.add_child(span) + node.remove + 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 7a115c13..b4380e9b 100644 --- a/lib/docs/scrapers/vue.rb +++ b/lib/docs/scrapers/vue.rb @@ -10,6 +10,7 @@ module Docs options[:only_patterns] = [/guide\//, /api\//] options[:skip] = %w(guide/team.html) + options[:skip_patterns] = [/guide\/contributing/] options[:replace_paths] = { 'guide/' => 'guide/index.html' } options[:attribution] = <<-HTML @@ -18,7 +19,7 @@ module Docs HTML version '3' do - self.release = '3.2.4' + self.release = '3.2.20' self.base_url = 'https://v3.vuejs.org/' self.root_path = 'guide/introduction.html' self.initial_paths = %w(api/)