@@ -8,13 +8,16 @@ const hyperquest = require('hyperzip')(require('hyperdirect'))
8
8
9
9
, files = require ( './files' )
10
10
, testReplace = require ( './test-replacements' )
11
+ , docReplace = require ( './doc-replacements' )
11
12
12
- , srcurlpfx = ' https://raw.githubusercontent.com/nodejs/io.js/v' + process . argv [ 2 ] + '/'
13
+ , srcurlpfx = ` https://raw.githubusercontent.com/nodejs/io.js/v${ process . argv [ 2 ] } /`
13
14
, libsrcurl = srcurlpfx + 'lib/'
14
15
, 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`
16
17
, libourroot = path . join ( __dirname , '../lib/' )
17
18
, testourroot = path . join ( __dirname , '../test/parallel/' )
19
+ , docurlpfx = `https://raw.githubusercontent.com/nodejs/io.js/v${ process . argv [ 2 ] } /doc/api/`
20
+ , docourroot = path . join ( __dirname , '../doc' )
18
21
19
22
20
23
if ( ! / \d \. \d \. \d + / . test ( process . argv [ 2 ] ) ) {
@@ -89,6 +92,9 @@ hyperquest(testlisturl).pipe(bl(function (err, data) {
89
92
} )
90
93
} ) )
91
94
95
+ processFile ( docurlpfx + 'stream.markdown' , path . join ( docourroot , 'stream.markdown' ) , docReplace )
96
+
97
+
92
98
//--------------------------------------------------------------------
93
99
// Grab the joyent/node test/common.js
94
100
0 commit comments