File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = {
2727 plugins : [ 'plugins/markdown' , 'jsdoc-region-tag' ] ,
2828 source : {
2929 excludePattern : '(^|\\/|\\\\)[._]' ,
30- include : [ 'src' ] ,
30+ include : [ 'build/ src' ] ,
3131 includePattern : '\\.js$' ,
3232 } ,
3333 templates : {
@@ -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" ,
5959 "googleapis-common" : " ^7.0.0"
6060 },
6161 "devDependencies" : {
62- "@compodoc/compodoc" : " 1.1.23" ,
6362 "@types/execa" : " ^2.0.0" ,
6463 "@types/mocha" : " ^9.0.0" ,
6564 "@types/mv" : " ^2.1.0" ,
8180 "gaxios" : " ^6.0.3" ,
8281 "gts" : " ^5.0.0" ,
8382 "js-green-licenses" : " ^4.0.0" ,
83+ "jsdoc" : " ^4.0.0" ,
84+ "jsdoc-fresh" : " ^3.0.0" ,
85+ "jsdoc-region-tag" : " ^3.0.0" ,
8486 "linkinator" : " ^4.0.0" ,
8587 "mocha" : " ^9.2.2" ,
8688 "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 = {
@@ -58,10 +59,9 @@ export async function main() {
5859 . add ( ( ) =>
5960 gfs . execa ( process . execPath , [
6061 '--max-old-space-size=8192' ,
61- './node_modules/.bin/compodoc' ,
62- `src/apis/${ dir } ` ,
63- '-d' ,
64- `./docs/${ dir } ` ,
62+ './node_modules/.bin/jsdoc' ,
63+ '-c' ,
64+ '.jsdoc.js' ,
6565 ] )
6666 )
6767 . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments