diff --git a/lib/docs/filters/node/entries.rb b/lib/docs/filters/node/entries.rb index 224df584..9d2b9e81 100644 --- a/lib/docs/filters/node/entries.rb +++ b/lib/docs/filters/node/entries.rb @@ -68,11 +68,12 @@ module Docs next end - # Skip all that start with an uppercase letter ("Example", "How It Works", etc.) - next unless name.first.upcase! || name.start_with?('Class Method') - name.gsub! %r{\(.*?\)}, '()' name.gsub! %r{\[.+?\]}, '[]' + name.sub! 'assert(), ', '' # assert/assert.ok + + # Skip all that start with an uppercase letter ("Example") or include a space ("exports alias") + next unless (name.first.upcase! && !name.include?(' ')) || name.start_with?('Class Method') # Differentiate server classes (http, https, net, etc.) name.sub!('server.') { "#{(klass || 'https').sub('.', '_').downcase!}." } @@ -80,7 +81,6 @@ module Docs name.sub!('socket.') { "#{klass.sub('.', '_').downcase!}." } name.sub! 'Class Method:', '' - name.sub! 'assert(), ', '' # assert/assert.ok name.sub! 'buf.', 'buffer.' name.sub! 'buf[', 'buffer[' name.sub! 'child.', 'childprocess.' diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb index 598b34ce..4d4fbdbc 100644 --- a/lib/docs/scrapers/node.rb +++ b/lib/docs/scrapers/node.rb @@ -3,7 +3,7 @@ module Docs self.name = 'Node.js' self.slug = 'node' self.type = 'node' - self.version = '0.10.21' + self.version = '0.10.22' self.base_url = 'http://nodejs.org/api/' html_filters.push 'node/clean_html', 'node/entries', 'title'