Skip to content

Commit 49c3682

Browse files
devversionamysorto
authored andcommitted
build: fix warnings for api docs generation not printed
Fixes that warnings for the API docs generation are not printed. We used an incorrect name for the log level. Additionally this commit fixes one remaining warning for danging API doc links. (cherry picked from commit 1f5648f)
1 parent 810ade2 commit 49c3682

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/dgeni/docs-package.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ apiDocsPackage.processor(new AsyncFunctionsProcessor());
6363

6464
// Configure the log level of the API docs dgeni package.
6565
apiDocsPackage.config(function (log: any) {
66-
return (log.level = 'warning');
66+
return (log.level = 'warn');
6767
});
6868

6969
// Configure the processor for reading files from the file system.
@@ -105,7 +105,7 @@ apiDocsPackage.config(function (parseTagsProcessor: any) {
105105

106106
apiDocsPackage.config(function (checkAnchorLinksProcessor: any) {
107107
// This ensures that Dgeni will fail if we generate links that don't follow this format.
108-
checkAnchorLinksProcessor.ignoredLinks.push(/(components|cdk)\/[\w-]+\/api#\w+/);
108+
checkAnchorLinksProcessor.ignoredLinks.push(/(components|cdk)\/[\w-]+(\/testing)?\/api#\w+/);
109109
});
110110

111111
// Configure the processor for understanding TypeScript.

tools/dgeni/patch-log-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export function patchLogService(log: any) {
2121
return;
2222
}
2323

24-
_warnFn.apply(this, [message]);
24+
_warnFn.apply(log, [message]);
2525
};
2626
}

0 commit comments

Comments
 (0)