forked from xt-com/xt-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (131 loc) · 3.85 KB
/
index.html
File metadata and controls
138 lines (131 loc) · 3.85 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
---
title: API Docs
---
<div id="index_en">
{% assign sorted_collections = site.collections | sort: "position_number" %}
{% for collection in sorted_collections limit:7 %}
{% assign sorted_docs = collection.docs | sort: "position_number" %}
{% 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>
<a class="editor-link" href="cloudcannon:collections/{{ doc.relative_path }}">Edit</a>
</h3>
{% if doc.description %}
<p class="description">{{ doc.description }}</p>
{% endif %}
{% if doc.parameters and doc.parameters[0].name %}
<h6>Parameters</h6>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>mandatory</th>
<th>Default</th>
<th>Description</th>
<th>Ranges</th>
</tr>
</thead>
<tbody>
{% for parameter in doc.parameters %}
<tr>
<td>{{ parameter.name }}</td>
<td>{{ parameter.type }}</td>
<td>{{ parameter.mandatory }}</td>
<td>{{ parameter.default }}</td>
<td>{{ parameter.description }}</td>
<td style = "word-break: break-all;">{{ parameter.ranges }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{{ doc.content_markdown | markdownify | replace: "<dl>", "<h6>Parameters</h6><dl>" }}
{% if doc.left_code_blocks and doc.left_code_blocks[0].code_block %}
{% for block in doc.left_code_blocks %}
{% include syntax-highlight.html block=block %}
{% endfor %}
{% endif %}
</section>
{% if doc.right_code_blocks and doc.right_code_blocks[0].code_block %}
<section class="right-code">
{% for block in doc.right_code_blocks %}
{% include syntax-highlight.html block=block %}
{% endfor %}
</section>
{% endif %}
</section>
{% endfor %}
{% endfor %}
</div>
<div id="index_cn">
{% assign sorted_collections = site.collections | sort: "position_number" %}
{% for collection in sorted_collections offset:7 limit:7 %}
{% assign sorted_docs = collection.docs | sort: "position_number" %}
{% 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>
<a class="editor-link" href="cloudcannon:collections/{{ doc.relative_path }}">Edit</a>
</h3>
{% if doc.description %}
<p class="description">{{ doc.description }}</p>
{% endif %}
{% if doc.parameters and doc.parameters[0].name %}
<h6>Parameters</h6>
<table>
<thead>
<tr>
<th>参数</th>
<th>数据类型</th>
<th>是否必须</th>
<th>默认值</th>
<th>描述</th>
<th>取值范围</th>
</tr>
</thead>
<tbody>
{% for parameter in doc.parameters %}
<tr>
<td>{{ parameter.name }}</td>
<td>{{ parameter.type }}</td>
<td>{{ parameter.mandatory }}</td>
<td>{{ parameter.default }}</td>
<td>{{ parameter.description }}</td>
<td style = "word-break: break-all;">{{ parameter.ranges }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{{ doc.content_markdown | markdownify | replace: "<dl>", "<h6>Parameters</h6><dl>" }}
{% if doc.left_code_blocks and doc.left_code_blocks[0].code_block %}
{% for block in doc.left_code_blocks %}
{% include syntax-highlight.html block=block %}
{% endfor %}
{% endif %}
</section>
{% if doc.right_code_blocks and doc.right_code_blocks[0].code_block %}
<section class="right-code">
{% for block in doc.right_code_blocks %}
{% include syntax-highlight.html block=block %}
{% endfor %}
</section>
{% endif %}
</section>
{% endfor %}
{% endfor %}
</div>