[devdocsgjs/main: 1466/1867] SocketIO: Use better enclosing element
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1466/1867] SocketIO: Use better enclosing element
- Date: Fri, 19 Nov 2021 23:48:05 +0000 (UTC)
commit 58904ce7f939b12345e657ba5bbc94337760b912
Author: Phil Scherer <pnscher evoforge org>
Date: Fri Jan 8 23:01:03 2021 +0000
SocketIO: Use better enclosing element
lib/docs/filters/socketio/clean_html.rb | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/lib/docs/filters/socketio/clean_html.rb b/lib/docs/filters/socketio/clean_html.rb
index 98f8d164..d0002c33 100644
--- a/lib/docs/filters/socketio/clean_html.rb
+++ b/lib/docs/filters/socketio/clean_html.rb
@@ -2,19 +2,16 @@ module Docs
class Socketio
class CleanHtmlFilter < Filter
def call
+ @doc = at_css('article')
css('p > br').each do |node|
node.remove unless node.next.content =~ /\s*\-/
end
# version documentation message
- css('.warning').remove
+ at_css('.warning').remove
- css('header').remove
-
- css('aside').remove
-
- css('footer').remove
+ css('header', 'footer', 'aside').remove
css('pre').each do |node|
node.content = node.content
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]