Update Node.js documentation to 0.10.22

pull/15/head
Thibaut 11 years ago
parent 7ab4352405
commit b03112c646

@ -68,11 +68,12 @@ module Docs
next next
end 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.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.) # Differentiate server classes (http, https, net, etc.)
name.sub!('server.') { "#{(klass || 'https').sub('.', '_').downcase!}." } name.sub!('server.') { "#{(klass || 'https').sub('.', '_').downcase!}." }
@ -80,7 +81,6 @@ module Docs
name.sub!('socket.') { "#{klass.sub('.', '_').downcase!}." } name.sub!('socket.') { "#{klass.sub('.', '_').downcase!}." }
name.sub! 'Class Method:', '' name.sub! 'Class Method:', ''
name.sub! 'assert(), ', '' # assert/assert.ok
name.sub! 'buf.', 'buffer.' name.sub! 'buf.', 'buffer.'
name.sub! 'buf[', 'buffer[' name.sub! 'buf[', 'buffer['
name.sub! 'child.', 'childprocess.' name.sub! 'child.', 'childprocess.'

@ -3,7 +3,7 @@ module Docs
self.name = 'Node.js' self.name = 'Node.js'
self.slug = 'node' self.slug = 'node'
self.type = 'node' self.type = 'node'
self.version = '0.10.21' self.version = '0.10.22'
self.base_url = 'http://nodejs.org/api/' self.base_url = 'http://nodejs.org/api/'
html_filters.push 'node/clean_html', 'node/entries', 'title' html_filters.push 'node/clean_html', 'node/entries', 'title'

Loading…
Cancel
Save