Skip to content

Commit 63ae944

Browse files
authored
Merge branch 'main' into release-please--branches--main
2 parents 42aa562 + b4025e6 commit 63ae944

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.jsdoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
};

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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",
@@ -59,7 +59,6 @@
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",
@@ -81,6 +80,9 @@
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",

src/generator/docs.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ import * as path from 'path';
1919
import {promisify} from 'util';
2020
import 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');
2324
const apiPath = path.join(srcPath, 'apis');
2425
const templatePath = path.join(srcPath, 'generator/templates/index.html.njk');
25-
const docsPath = path.join(__dirname, '../../../docs');
26+
const docsPath = path.join(rootPath, 'docs');
2627
const indexPath = path.join(docsPath, 'index.html');
2728

2829
export 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(() => {

0 commit comments

Comments
 (0)