From 3580904e8a1e17fdcc21cbe1f2d7d92f0192ccb5 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Mon, 22 Apr 2024 20:08:46 +0100 Subject: [PATCH] redoc.html: revert djlint changes (breaks handlebar template) --- docs/source/_templates/redoc.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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 #}