45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
|
{% extends "layouts/default.html" %}
|
||
|
{% block title %}Package Documentation{% endblock %}
|
||
|
{% block content %}
|
||
|
<div class="content">
|
||
|
<div class="table-container">
|
||
|
<table class="table is-bordered is-fullwidth">
|
||
|
<tr>
|
||
|
<th>Endpoint/URL (method)</th>
|
||
|
<th>Parameters</th>
|
||
|
<th>Documentation</th>
|
||
|
</tr>
|
||
|
{% for doc in docs %}
|
||
|
<tr {% if not doc.1 %}class="has-background-danger"{% endif %}>
|
||
|
<td><a href="{{ doc.0 }}">{{ doc.0 }}</a> {{ doc.2 }}</td>
|
||
|
<td>
|
||
|
{% if doc.3 %}
|
||
|
<div class="highlight">
|
||
|
<pre style="white-space: pre-wrap; overflow-wrap: break-word;">{{ doc.3 }}</pre>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
<td>
|
||
|
{% if doc.1 %}
|
||
|
<div class="highlight">
|
||
|
<pre style="white-space: pre-wrap; overflow-wrap: break-word;">{{ doc.1 }}</pre>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endblock %}
|
||
|
{# comment #}
|
||
|
(cl-who:with-html-output-to-string (s nil :prologue t)
|
||
|
(:html
|
||
|
(:head)
|
||
|
(:body
|
||
|
(loop for (url docstring methods params) in docs
|
||
|
do (cl-who:htm (:h3 (cl-who:str url) " " (cl-who:fmt "~a" methods))
|
||
|
(if params (cl-who:htm (:h4 (cl-who:fmt " Params: ~a" params))))
|
||
|
(:div (cl-who:str docstring)))))))
|
||
|
{# endcomment #}
|