[devdocsgjs/main: 37/239] yarn: clean all styles
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 37/239] yarn: clean all styles
- Date: Fri, 8 Apr 2022 07:47:34 +0000 (UTC)
commit 07279d6aaeb06e685bf09198247b7066e4ac69e3
Author: Simon Legner <Simon Legner gmail com>
Date: Thu Dec 2 22:42:15 2021 +0100
yarn: clean all styles
lib/docs/filters/yarn/clean_html_berry.rb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/yarn/clean_html_berry.rb b/lib/docs/filters/yarn/clean_html_berry.rb
index 5d901150..96b3ee53 100644
--- a/lib/docs/filters/yarn/clean_html_berry.rb
+++ b/lib/docs/filters/yarn/clean_html_berry.rb
@@ -34,10 +34,13 @@ module Docs
if slug.start_with?('configuration')
css('h1', 'h2').each do |node|
node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
- node.remove_attribute('style')
end
end
+ css('*').each do |node|
+ node.remove_attribute('style')
+ end
+
doc
end
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]