Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2ca6db5

Browse files
chore(docs): fix api.template.html to display git links
1 parent c5cdadb commit 2ca6db5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/config/templates/api/api.template.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
{% block content %}
44

5+
<a href='https://github.com/{$ git.info.owner $}/{$ git.info.repo $}/tree/{$ git.version.isSnapshot and 'master' or git.version.raw $}/{$ doc.fileInfo.projectRelativePath $}#L{$ doc.startingLine $}' class='view-source pull-right btn btn-primary'>
6+
<i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
7+
</a>
8+
59
{% block header %}
610
<header class="api-profile-header">
711
<h1 class="api-profile-header-heading">{$ doc.name $}</h1>
812
<ol class="api-profile-header-structure naked-list step-list">
913
{% block related_components %}{% endblock %}
1014
<li>
11-
- {$ doc.docType $} in module {$ doc.moduleDoc.id | link(doc.moduleDoc.name, doc.moduleDoc) $}
15+
- {$ doc.docType $} in module <a href="{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.name $}</a>
1216
</li>
1317
</ol>
1418
</header>
@@ -24,7 +28,7 @@ <h1 class="api-profile-header-heading">{$ doc.name $}</h1>
2428
<h2 id="known-issues">Known Issues</h2>
2529
{% for issue in doc.knownIssues -%}
2630
<div class="known-issue">
27-
{$ issue | marked $} {% if not loop.last %}<hr>{% endif %}
31+
{$ issue | marked $}
2832
</div>
2933
{% endfor -%}
3034
{% endif %}
@@ -59,4 +63,4 @@ <h2 id="example">Example</h2>
5963
{% endblock %}
6064
</div>
6165

62-
{% endblock %}
66+
{% endblock %}

0 commit comments

Comments
 (0)