File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,4 @@ module.exports = {
4343 markdown : {
4444 idInHeadings : true ,
4545 } ,
46- } ;
46+ } ;
Original file line number Diff line number Diff line change 1919 "prepare" : " npm run compile" ,
2020 "test" : " c8 mocha build/test" ,
2121 "predocs" : " npm run build-tools" ,
22- "docs" : " node build/src/generator/docs" ,
22+ "docs" : " npm run compile && node build/src/generator/docs" ,
2323 "predocs2" : " npm run compile" ,
2424 "docs-extract" : " node --max-old-space-size=8192 ./node_modules/@microsoft/api-extractor/bin/api-extractor run --local --verbose" ,
2525 "docs-md" : " node --max-old-space-size=8192 ./node_modules/@microsoft/api-documenter/bin/api-documenter markdown --input-folder build/docs --output-folder docs" ,
7979 "execa" : " ^5.0.0" ,
8080 "gaxios" : " ^6.0.3" ,
8181 "gts" : " ^5.0.0" ,
82+ "js-green-licenses" : " ^4.0.0" ,
8283 "jsdoc" : " ^4.0.0" ,
8384 "jsdoc-fresh" : " ^3.0.0" ,
8485 "jsdoc-region-tag" : " ^3.0.0" ,
85- "js-green-licenses" : " ^4.0.0" ,
8686 "linkinator" : " ^4.0.0" ,
8787 "mocha" : " ^9.2.2" ,
8888 "mv" : " ^2.1.1" ,
Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ import * as path from 'path';
1919import { promisify } from 'util' ;
2020import Q from 'p-queue' ;
2121
22- const srcPath = path . join ( __dirname , '../../../src' ) ;
22+ const rootPath = path . join ( __dirname , '../../..' ) ;
23+ const srcPath = path . join ( rootPath , 'src' ) ;
2324const apiPath = path . join ( srcPath , 'apis' ) ;
2425const templatePath = path . join ( srcPath , 'generator/templates/index.html.njk' ) ;
25- const docsPath = path . join ( __dirname , '../../../ docs' ) ;
26+ const docsPath = path . join ( rootPath , 'docs' ) ;
2627const indexPath = path . join ( docsPath , 'index.html' ) ;
2728
2829export const gfs = {
@@ -53,14 +54,14 @@ export async function main() {
5354 const q = new Q ( { concurrency : 50 } ) ;
5455 console . log ( `Generating docs for ${ dirs . length } APIs...` ) ;
5556 let i = 0 ;
56- const promises = dirs . map ( dir => {
57+ const promises = dirs . map ( async dir => {
5758 return q
5859 . add ( ( ) =>
5960 gfs . execa ( process . execPath , [
6061 '--max-old-space-size=8192' ,
6162 './node_modules/.bin/jsdoc' ,
6263 '-c' ,
63- ` .jsdoc.js` ,
64+ ' .jsdoc.js' ,
6465 ] )
6566 )
6667 . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments