From 21c70729d9269de85df3434c431c2f18995b0f7b Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Mon, 20 May 2013 21:00:12 -0400 Subject: feat(ngdocs): provide support for inline variable hinting --- docs/src/ngdoc.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/src') 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 ? '' : '') + ''; + }). + replace(/{@type\s+(\S+)(?:\s+(\S+))?}/g, function(_, type, url) { + url = url || '#'; + return '' + type + ''; }); }); text = parts.join(''); -- cgit v1.2.3