address djlint lint

and autoformat js in templates
This commit is contained in:
Min RK
2024-04-19 10:12:28 +02:00
parent d9ce1b917f
commit 75c947be59
19 changed files with 384 additions and 312 deletions

View File

@@ -19,14 +19,18 @@
{%- block content %}
<redoc id="redoc-spec"></redoc>
<script>
if (location.protocol === "file:") {
document.body.innerText = "Rendered API specification doesn't work with file: protocol. Use sphinx-autobuild to do local builds of the docs, served over HTTP."
} else {
Redoc.init(
"{{ pathto('_static/rest-api.yml', 1) }}",
{{ meta.redoc_options | default({}) }},
document.getElementById("redoc-spec"),
);
}
if (location.protocol === "file:") {
document.body.innerText = "Rendered API specification doesn't work with file: protocol. Use sphinx-autobuild to do local builds of the docs, served over HTTP."
} else {
Redoc.init(
"{{ pathto('_static/rest-api.yml', 1) }}", {
{
meta.redoc_options |
default ({})
}
},
document.getElementById("redoc-spec"),
);
}
</script>
{%- endblock content %}