mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-22 21:25:47 +00:00
chore(ngdoc): add dynamic anchors to anchor list
Fixes some warnings during docs generation. Closes #4673
This commit is contained in:
parent
5614fd283a
commit
c1260716de
1 changed files with 3 additions and 0 deletions
|
|
@ -1331,6 +1331,9 @@ function checkBrokenLinks(docs) {
|
||||||
|
|
||||||
docs.forEach(function(doc) {
|
docs.forEach(function(doc) {
|
||||||
byFullId[doc.section + '/' + doc.id] = doc;
|
byFullId[doc.section + '/' + doc.id] = doc;
|
||||||
|
if (doc.section === 'api') {
|
||||||
|
doc.anchors.push('directive', 'service', 'filter', 'function');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
docs.forEach(function(doc) {
|
docs.forEach(function(doc) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue