aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorMatias Niemelä2013-05-20 21:00:12 -0400
committerMisko Hevery2013-05-30 21:42:41 -0700
commit21c70729d9269de85df3434c431c2f18995b0f7b (patch)
treea54c53e0983e796a3b50647307d3ae89aca4a788 /docs/src
parente46100f7097d9a8f174bdb9e15d4c6098395c3f2 (diff)
downloadangular.js-21c70729d9269de85df3434c431c2f18995b0f7b.tar.bz2
feat(ngdocs): provide support for inline variable hinting
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/ngdoc.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index 7c07f00f..d66f33e6 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -214,6 +214,10 @@ Doc.prototype = {
(title || url).replace(/^#/g, '').replace(/\n/g, ' ') +
(isAngular ? '</code>' : '') +
'</a>';
+ }).
+ replace(/{@type\s+(\S+)(?:\s+(\S+))?}/g, function(_, type, url) {
+ url = url || '#';
+ return '<a href="' + url + '" class="' + self.prepare_type_hint_class_name(type) + '">' + type + '</a>';
});
});
text = parts.join('');