Skip to content

Commit c99ad64

Browse files
authored
Update doc gen script (#2114)
1 parent aa31411 commit c99ad64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/docgen/generate-docs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function stripPath(path) {
6262
function runTypedoc() {
6363
const typeSource = apiType === 'node' ? tempNodeSourcePath : sourceFile;
6464
const command = `${repoPath}/node_modules/.bin/typedoc ${typeSource} \
65+
--tsconfig ${repoPath}/scripts/docgen/tsconfig.json \
6566
--out ${docPath} \
6667
--readme ${tempHomePath} \
6768
--options ${__dirname}/typedoc.js \
@@ -331,7 +332,9 @@ Promise.all([
331332
fs.unlink(tempNodeSourcePath);
332333
}
333334
// Devsite doesn't like css.map files.
334-
return fs.unlink(`${docPath}/assets/css/main.css.map`);
335+
if (await fs.exists(`${docPath}/assets/css/main.css.map`)) {
336+
fs.unlink(`${docPath}/assets/css/main.css.map`);
337+
}
335338
})
336339
// Write out TOC file. Do this after Typedoc step to prevent Typedoc
337340
// erroring when it finds an unexpected file in the target dir.

0 commit comments

Comments
 (0)