[devdocsgjs/main: 1832/1867] Update Vue.js documentation (3.2.20)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1832/1867] Update Vue.js documentation (3.2.20)
- Date: Fri, 19 Nov 2021 23:48:22 +0000 (UTC)
commit f0c16cb9943452e13bec4d9fd2b16a0a92437661
Author: Simon Legner <Simon Legner gmail com>
Date: Fri Oct 22 21:42:31 2021 +0200
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/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]