mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
chore(ngdoc): add dynamic anchors to anchor list
Fixes some warnings during docs generation. Closes #4673
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user