forked from oskarpearson/airbrake-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (29 loc) · 1.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
layout: classic-docs
---
<div class="alert alert-info">
If you are looking for the full Airbrake API reference, please visit our <strong>
<a target="_blank" href="{{ site.url }}/docs/api/">API Docs</a></strong>.
</div>
{% for category in site.data.categories %}
<h2>{{ category.name }}</h2>
<ul class="list-unstyled">
{% assign docs_found = 0 %}
{% for doc in site.docs %}
{% if (doc.categories contains category.slug) and (doc.slug != category.index) %}
{% assign docs_found = docs_found | plus: 1 %}
{% if docs_found < 4 %}
{% if doc.short-title %}
<li class="{% if page.path contains doc.url %}active{% endif %}"><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.short-title }}</a></li>
{% else %}
<li><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.title }}</a></li>
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if docs_found > 3 %}
{% assign more = docs_found | minus: 3 %}
<li><em><a href="{{ site.baseurl }}/{{ category.index }}/">{{ more }} more</a></em></li>
{% endif %}
</ul>
{% endfor %}