[devdocsgjs/main: 1393/1867] Fix document style
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1393/1867] Fix document style
- Date: Fri, 19 Nov 2021 23:47:56 +0000 (UTC)
commit b97128f5b91809fb37b7a589f200c013192db7a2
Author: MasterEnoc <brianhernandez222 hotmail com>
Date: Thu Dec 17 11:12:18 2020 -0600
Fix document style
Fix some 'pre' tags that lost their style
lib/docs/filters/rethinkdb/clean_html.rb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/lib/docs/filters/rethinkdb/clean_html.rb b/lib/docs/filters/rethinkdb/clean_html.rb
index 4f3db145..c494d4be 100644
--- a/lib/docs/filters/rethinkdb/clean_html.rb
+++ b/lib/docs/filters/rethinkdb/clean_html.rb
@@ -19,10 +19,6 @@ module Docs
node.content = node.content
end
- css('.highlight', 'section', 'div.highlighter-rouge', 'a > p', 'li > h1').each do |node|
- node.before(node.children).remove
- end
-
css('h2, h3, h4').each do |node|
node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
end
@@ -46,6 +42,8 @@ module Docs
css('> .infobox:last-child:contains("Contribute:")').remove
+ css('.additional-help').remove
+
doc
end
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]