@@ -32,7 +32,7 @@ const readFile = promisify(fs.readFile);
3232const stat = promisify ( fs . stat ) ;
3333
3434module . exports = templateSource => {
35- const apply = ( rawItr , lang , initialJsState , currentPath , destPath ) => {
35+ const apply = ( rawItr , lang , initialJsState , destPath ) => {
3636 /*
3737 * We apply the template by walking a stream for the template and a stream
3838 * for the raw page in parallel. We do this instead of pulling everything
@@ -108,7 +108,7 @@ module.exports = templateSource => {
108108 yield `lang="${ lang } "` ;
109109
110110 yield * template . gather ( "<!-- DOCS CURRENT -->" ) ;
111- yield `<div id="custom-content">Current path: ${ currentPath } <br> Dest path: ${ destPath } </div>` ;
111+ yield `<div id="custom-content">Dest path: ${ destPath } </div>` ;
112112
113113 yield * template . gather ( "<!-- DOCS BODY -->" ) ;
114114 await raw . dump ( "<body>" ) ;
@@ -189,7 +189,7 @@ module.exports = templateSource => {
189189 const raw = fs . createReadStream ( source , { encoding : 'UTF-8' } ) ;
190190 const write = fs . createWriteStream ( dest , { encoding : 'UTF-8' } ) ;
191191 await new Promise ( ( resolve , reject ) => {
192- const out = apply ( raw [ Symbol . asyncIterator ] ( ) , lang , initialJsState , source , dest ) ;
192+ const out = apply ( raw [ Symbol . asyncIterator ] ( ) , lang , initialJsState , dest ) ;
193193 write . on ( "close" , resolve ) ;
194194 write . on ( "error" , reject ) ;
195195 out . on ( "error" , err => write . destroy ( err ) ) ;
0 commit comments