Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c126071

Browse files
committed
chore(ngdoc): add dynamic anchors to anchor list
Fixes some warnings during docs generation. Closes #4673
1 parent 5614fd2 commit c126071

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/ngdoc.js

+3
Original file line numberDiff line numberDiff line change
@@ -1331,6 +1331,9 @@ function checkBrokenLinks(docs) {
13311331

13321332
docs.forEach(function(doc) {
13331333
byFullId[doc.section + '/' + doc.id] = doc;
1334+
if (doc.section === 'api') {
1335+
doc.anchors.push('directive', 'service', 'filter', 'function');
1336+
}
13341337
});
13351338

13361339
docs.forEach(function(doc) {

0 commit comments

Comments
 (0)