No longer need to remove dead links
There should be no dead links any more, now that we include doclets for the whole inheritance chain of a class.
This commit is contained in:
@@ -23,21 +23,7 @@ function getAncestorLinks(doclet) {
|
|||||||
return helper.getAncestorLinks(data, doclet);
|
return helper.getAncestorLinks(data, doclet);
|
||||||
}
|
}
|
||||||
|
|
||||||
function linkto(longname, linkText, cssClass, fragmentId) {
|
var linkto = helper.linkto;
|
||||||
var markup = helper.linkto.apply(this, arguments);
|
|
||||||
var links = markup.match(/<a [^>]*>[^<]*<\/a>/g);
|
|
||||||
if (links) {
|
|
||||||
for (var i = links.length - 1; i >= 0; --i) {
|
|
||||||
var link = links[i];
|
|
||||||
var linkLongname = link.match(/<a [^>]*>([^<]*)<\/a>/)[1];
|
|
||||||
var doclet = find({longname: linkLongname})[0];
|
|
||||||
if (!doclet) {
|
|
||||||
markup = markup.replace(link, linkLongname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return markup;
|
|
||||||
}
|
|
||||||
|
|
||||||
var htmlsafe = helper.htmlsafe;
|
var htmlsafe = helper.htmlsafe;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user