Skip to content
Permalink
Browse files

chore(docs): fix api.template.html to display git links

  • Loading branch information
petebacondarwin committed May 23, 2016
1 parent c5cdadb commit 2ca6db53745fb51ca0f3129a1abb30bb14407829
Showing with 7 additions and 3 deletions.
  1. +7 −3 docs/config/templates/api/api.template.html
@@ -2,13 +2,17 @@

{% block content %}

<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'>
<i class="glyphicon glyphicon-zoom-in">&nbsp;</i>View Source
</a>

{% block header %}
<header class="api-profile-header">
<h1 class="api-profile-header-heading">{$ doc.name $}</h1>
<ol class="api-profile-header-structure naked-list step-list">
{% block related_components %}{% endblock %}
<li>
- {$ doc.docType $} in module {$ doc.moduleDoc.id | link(doc.moduleDoc.name, doc.moduleDoc) $}
- {$ doc.docType $} in module <a href="{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.name $}</a>
</li>
</ol>
</header>
@@ -24,7 +28,7 @@ <h1 class="api-profile-header-heading">{$ doc.name $}</h1>
<h2 id="known-issues">Known Issues</h2>
{% for issue in doc.knownIssues -%}
<div class="known-issue">
{$ issue | marked $} {% if not loop.last %}<hr>{% endif %}
{$ issue | marked $}
</div>
{% endfor -%}
{% endif %}
@@ -59,4 +63,4 @@ <h2 id="example">Example</h2>
{% endblock %}
</div>

{% endblock %}
{% endblock %}

0 comments on commit 2ca6db5

Please sign in to comment.
You can’t perform that action at this time.