Skip to content

Commit

Permalink
chore(ngdoc): add dynamic anchors to anchor list
Browse files Browse the repository at this point in the history
Fixes some warnings during docs generation.

Closes angular#4673
  • Loading branch information
btford authored and jamesdaily committed Jan 27, 2014
1 parent f438567 commit d1e425e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,9 @@ function checkBrokenLinks(docs) {

docs.forEach(function(doc) {
byFullId[doc.section + '/' + doc.id] = doc;
if (doc.section === 'api') {
doc.anchors.push('directive', 'service', 'filter', 'function');
}
});

docs.forEach(function(doc) {
Expand Down

0 comments on commit d1e425e

Please sign in to comment.