Skip to content

Commit 50c6efa

Browse files
chore(doc-gen): fix paths for links to modules and exports
1 parent 302c5d5 commit 50c6efa

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/angular.io-package/templates/var.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.l-main-section
55
h2 {$ doc.name $} <span class="type">variable</span>
66
p.location-badge.
7-
exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a>
7+
exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }
88

99
:markdown
1010
{$ doc.description | indent(4, true) $}

docs/dgeni-package/templates/class.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% block body %}
55
<h1 class="class export">{$ doc.name $} <span class="type">{$ doc.docType $}</span></h1>
6-
<p class="module">exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a><br/>
6+
<p class="module">exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }<br/>
77
defined in <a href="https://github.com/angular/angular/tree/master/modules/{$ doc.fileInfo.relativePath $}#L{$ doc.location.start.line+1 $}-L{$ doc.location.end.line+1 $}">
88
{$ doc.fileInfo.relativePath $} (line {$ doc.location.start.line+1 $})</a></p>
99
<p>{$ doc.description | marked $}</p>

docs/dgeni-package/templates/function.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% block body %}
55
<h1 class="function export">{$ doc.name $}{$ paramList(doc.parameters) $}</h1>
6-
<p class="module">exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a></p>
6+
<p class="module">exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }</p>
77
<p>{$ doc.description | marked $}</p>
88

99
{% endblock %}

docs/dgeni-package/templates/module.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h2>Exports</h2>
1010
<ul>
1111
{%- for exportDoc in doc.exports %}
1212
{% if not exportDoc.private -%}
13-
<li><a href="/{$ exportDoc.path $}"><strong>{$ exportDoc.name $}</strong> {$ exportDoc.docType $}</a></li>
13+
<li><a href="{$ exportDoc.path $}"><strong>{$ exportDoc.name $}</strong> {$ exportDoc.docType $}</a></li>
1414
{%- endif %}
1515
{%- endfor %}
1616
</ul>

docs/dgeni-package/templates/var.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block body %}
44
<h1>{$ doc.name $} <span class="type">variable</span></h1>
5-
<p class="module">exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a></p>
5+
<p class="module">exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }</p>
66
<p>{$ doc.description | marked $}</p>
77

88
{% endblock %}

0 commit comments

Comments
 (0)