From 267f95f4c798029e28363e7ebc06740f991e263e Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 4 Jun 2017 11:50:40 -0400 Subject: [PATCH] Update Node.js documentation (8.0.0) --- lib/docs/filters/node/entries.rb | 5 +++-- lib/docs/scrapers/node.rb | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/docs/filters/node/entries.rb b/lib/docs/filters/node/entries.rb index 1b80d99f..eee70266 100644 --- a/lib/docs/filters/node/entries.rb +++ b/lib/docs/filters/node/entries.rb @@ -8,6 +8,7 @@ module Docs 'modules' => 'module' } REPLACE_TYPES = { + 'C++ Addons' => 'Miscellaneous', 'C/C++ Addons' => 'Miscellaneous', 'Debugger' => 'Miscellaneous', 'Deprecated APIs' => 'Miscellaneous', @@ -74,9 +75,9 @@ module Docs 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!}." } + name.sub!('server.') { "#{(klass || 'https').sub('.', '_').downcase}." } # Differentiate socket classes (net, dgram, etc.) - name.sub!('socket.') { "#{klass.sub('.', '_').downcase!}." } + name.sub!('socket.') { "#{klass.sub('.', '_').downcase}." } name.remove! 'Class Method:' name.sub! 'buf.', 'buffer.' diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb index 0cd2a60f..9c96ef68 100644 --- a/lib/docs/scrapers/node.rb +++ b/lib/docs/scrapers/node.rb @@ -23,8 +23,8 @@ module Docs HTML version do - self.release = '7.10.0' - self.base_url = 'https://nodejs.org/dist/latest-v7.x/docs/api/' + self.release = '8.0.0' + self.base_url = 'https://nodejs.org/dist/latest-v8.x/docs/api/' end version '6 LTS' do