From fbd6851860a04c923efbf8f0e785929f012417a6 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sat, 18 Apr 2015 22:06:35 +0100 Subject: [PATCH] chore(doc-gen): add ids to members to allow direct linking You can now write a link to a member of a class by appending the member name to the class name joined by a hash sign: ``` {@link ControlGroupDirective#addDirective `addDirective`} ``` By default the link will contain the text of the class rather than the member so you must add it as an inline code text snippet in the link tag. Closes #1432 --- docs/app/index.html | 2 +- docs/dgeni-package/templates/class.template.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/app/index.html b/docs/app/index.html index cbfac9f869..3bfb05b69e 100644 --- a/docs/app/index.html +++ b/docs/app/index.html @@ -47,7 +47,7 @@ - + diff --git a/docs/dgeni-package/templates/class.template.html b/docs/dgeni-package/templates/class.template.html index 7d99255e9a..2ca6ffaa2d 100644 --- a/docs/dgeni-package/templates/class.template.html +++ b/docs/dgeni-package/templates/class.template.html @@ -12,7 +12,7 @@ defined in -

{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}

+

{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}

{% marked %} {$ doc.constructorDoc.description $} {% endmarked %} @@ -21,7 +21,7 @@ defined in
-

{$ member.name $}{$ paramList(member.params) $}

+

{$ member.name $}{$ paramList(member.params) $}

{% marked %} {$ member.description $} {% endmarked %}