forked from steemit/devportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (32 loc) · 968 Bytes
/
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
32
33
34
---
title: API Docs
---
{% assign sorted_nav = site.data.nav.toc | sort: "position" %}
{% for nav in sorted_nav %}
{% unless nav.exclude %}
{% assign col = site.collections | where:"id", nav.collection | first %}
{% if col %}
{% assign sorted_docs = col.docs | sort: "position" %}
{% for doc in sorted_docs %}
{% unless doc.exclude %}
<section id="section-{{doc.id | slugify}}" class="row {{ doc.id | slugify }}">
<section class="row">
<h3>
<a id="{{ doc.id | slugify }}">
{{ doc.title }}
{% if doc.type %}
<span class="endpoint {{ doc.type }}"></span>
{% endif %}
</a>
</h3>
{% if doc.description %}
<p class="description">{{doc.description}}</p>
{% endif %}
{{ doc.content | replace: "<dl>", "<h6>Parameters</h6><dl>" }}
</section>
</section>
{% endunless %}
{% endfor %}
{% endif %}
{% endunless %}
{% endfor %}