diff --git a/docs/source/_templates/redoc.html b/docs/source/_templates/redoc.html index 6e457719..cc5e0014 100644 --- a/docs/source/_templates/redoc.html +++ b/docs/source/_templates/redoc.html @@ -1,3 +1,4 @@ +{# djlint: off #} {%- extends "!layout.html" %} {# not sure why, but theme CSS prevents scrolling within redoc content # If this were fixed, we could keep the navbar and footer @@ -8,9 +9,7 @@ {% endblock docs_navbar %} {% block footer %} {% endblock footer %} -{# djlint: off #} {%- block body_tag -%}{%- endblock body_tag %} -{# djlint: on #} {%- block extrahead %} {{ super() }} @@ -23,14 +22,11 @@ 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 ({}) - } - }, + "{{ pathto('_static/rest-api.yml', 1) }}", + {{ meta.redoc_options | default ({}) }}, document.getElementById("redoc-spec"), ); } {%- endblock content %} +{# djlint: on #}