-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (30 loc) · 989 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
---
title: API Docs
---
{% assign sorted_collections = site.collections | sort: "position" %}
{% for collection in sorted_collections %}
{% assign sorted_docs = collection.docs | sort: "position" %}
{% for doc in sorted_docs %}
<section class="doc-content">
<section class="left-docs">
<h3>
<a id="{{ doc.id | replace: '/', '' | replace: '.', '' }}">
{{ 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>
{% if doc.right_code %}
<section class="right-code">
{{ doc.right_code | replace: '!SITE_URL!', site.baseurl | replace: '!CODE_START!', '<div class="codex custom-scroll">' | replace: '!CODE_END!', '</div>' | markdownify }}
</section>
{% endif %}
</section>
{% endfor %}
{% endfor %}