Merge pull request #1460 from scherepn/multi-fix

Minor Fix PHPUnit, SocketIO
pull/1467/head
Simon Legner 4 years ago committed by GitHub
commit be92da28d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,6 +2,7 @@ module Docs
class Phpunit
class CleanHtmlFilter < Filter
def call
@doc = at_css('.section') if not root_page?
css('pre').each do |node|
node['class'] = 'highlight'

@ -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

@ -18,12 +18,8 @@ module Docs
css('h3').each_with_object([]) do |node, entries|
name = node.content
name.remove! %r{\(.*}
name.remove! %r{\:.*}
unless entries.any? { |entry| entry[0] == name }
entries << [name, node['id'], self.name.remove(' API')]
end
entries << [name, node['id'], self.name.remove(' API')]
end
end
end

Loading…
Cancel
Save