Browse Source

Docs: Simplify JSDoc output directory. (#30815)

Michael Herzog 9 months ago
parent
commit
dfa5028723
1 changed files with 1 additions and 9 deletions
  1. 1 9
      utils/docs/template/publish.js

+ 1 - 9
utils/docs/template/publish.js

@@ -15,7 +15,7 @@ const hasOwnProp = Object.prototype.hasOwnProperty;
 let data;
 let data;
 let view;
 let view;
 
 
-let outdir = path.normalize( env.opts.destination );
+const outdir = path.normalize( env.opts.destination );
 const themeOpts = ( env.opts.themeOpts ) || {};
 const themeOpts = ( env.opts.themeOpts ) || {};
 
 
 function mkdirSync( filepath ) {
 function mkdirSync( filepath ) {
@@ -586,14 +586,6 @@ exports.publish = ( taffyData, opts, tutorials ) => {
 
 
 	} );
 	} );
 
 
-	// update outdir if necessary, then create outdir
-	const packageInfo = ( find( { kind: 'package' } ) || [] )[ 0 ];
-	if ( packageInfo && packageInfo.name ) {
-
-		outdir = path.join( outdir, packageInfo.name, ( packageInfo.version || '' ) );
-
-	}
-
 	fs.mkPath( outdir );
 	fs.mkPath( outdir );
 
 
 	// copy the template's static files to outdir
 	// copy the template's static files to outdir

粤ICP备19079148号