Skip to content
Permalink
Browse files

chore(docs): add horizontal rules between known issues

  • Loading branch information
petebacondarwin committed May 23, 2016
1 parent c8e09c8 commit 3bcbd63e47b7a7210ca8cf0ad75d14605018c91e
Showing with 63 additions and 1 deletion.
  1. +62 −0 docs/config/templates/api/api.template.html
  2. +1 −1 docs/config/templates/api/module.template.html
@@ -0,0 +1,62 @@
{% extends "base.template.html" %}

{% block content %}

{% 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) $}
</li>
</ol>
</header>
{% endblock %}

{% block description %}
<div class="api-profile-description">
{$ doc.description | marked $}
</div>
{% endblock %}

{% if doc.knownIssues %}
<h2 id="known-issues">Known Issues</h2>
{% for issue in doc.knownIssues -%}
<div class="known-issue">
{$ issue | marked $} {% if not loop.last %}<hr>{% endif %}
</div>
{% endfor -%}
{% endif %}

{% if doc.deprecated %}
<fieldset class="deprecated">
<legend>Deprecated API</legend>
{$ doc.deprecated| marked $}
</fieldset>
{% endif %}

<div>
{% block dependencies %}
{%- if doc.requires %}
<h2 id="dependencies">Dependencies</h2>
<ul>
{% for require in doc.requires %}<li>{$ require | link $}</li>{% endfor %}
</ul>
{% endif -%}
{% endblock %}

{% block additional %}
{% endblock %}

{% block examples %}
{%- if doc.examples %}
<h2 id="example">Example</h2>
{%- for example in doc.examples -%}
{$ example | marked $}
{%- endfor -%}
{% endif -%}
{% endblock %}
</div>

{% endblock %}
@@ -59,7 +59,7 @@ <h2 id="known-issues">Known Issues</h2>
<td>{$ issueDoc.id | link(issueDoc.name, issueDoc) $}</td>
<td>
{% for issue in issueDoc.knownIssues -%}
{$ issue | marked $}
{$ issue | marked $} {% if not loop.last %}<hr>{% endif %}
{% endfor -%}
</td>
</tr>

0 comments on commit 3bcbd63

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