openapi: allow toc to scroll page #526

This commit is contained in:
Sören Weber 2023-05-16 04:02:47 +02:00
parent 7875bfcf4b
commit 695052b8bc
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -93,6 +93,7 @@
{{- $urlOpenapi = printf "%s?%d" $urlOpenapi now.Unix }}" {{- $urlOpenapi = printf "%s?%d" $urlOpenapi now.Unix }}"
{{- end }} {{- end }}
{{- end }} {{- end }}
<script>window.noZensmooth = true;</script>
<script src="{{ $urlOpenapi }}" defer></script> <script src="{{ $urlOpenapi }}" defer></script>
{{- $urlOpenapi := replace $urlOpenapi "swagger-ui-bundle" "swagger-ui-standalone-preset" }} {{- $urlOpenapi := replace $urlOpenapi "swagger-ui-bundle" "swagger-ui-standalone-preset" }}
<script src="{{ $urlOpenapi }}" defer></script> <script src="{{ $urlOpenapi }}" defer></script>