Update Node.js documentation (5.6.0 and 4.3.0)

pull/344/merge
Thibaut Courouble 9 years ago
parent 141371ca86
commit 774ce90422

@ -103,11 +103,14 @@
migrateDocs: -> migrateDocs: ->
for slug in @settings.getDocs() when not @docs.findBy('slug', slug) for slug in @settings.getDocs() when not @docs.findBy('slug', slug)
needsSaving = true needsSaving = true
if doc = @disabledDocs.findBy('slug_without_version', slug) doc = @disabledDocs.findBy('slug', 'node~4_lts') if slug == 'node~4.2_lts'
doc ||= @disabledDocs.findBy('slug_without_version', slug)
if doc
@disabledDocs.remove(doc) @disabledDocs.remove(doc)
@docs.add(doc) @docs.add(doc)
@saveDocs() if needsSaving @saveDocs() if needsSaving
return
enableDoc: (doc, _onSuccess, onError) -> enableDoc: (doc, _onSuccess, onError) ->
return if @docs.contains(doc) return if @docs.contains(doc)

@ -23,12 +23,12 @@ module Docs
HTML HTML
version do version do
self.release = '5.5.0' self.release = '5.6.0'
self.base_url = 'https://nodejs.org/api/' self.base_url = 'https://nodejs.org/api/'
end end
version '4.2 LTS' do version '4 LTS' do
self.release = '4.2.6' self.release = '4.3.0'
self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/" self.base_url = "https://nodejs.org/dist/v#{release}/docs/api/"
end end
end end

Loading…
Cancel
Save