Skip to content

Commit d1e425e

Browse files
btfordjamesdaily
authored andcommitted
chore(ngdoc): add dynamic anchors to anchor list
Fixes some warnings during docs generation. Closes angular#4673
1 parent f438567 commit d1e425e

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)