2022-06-22 18:32:18 +00:00
|
|
|
{{- $context := .context }}
|
|
|
|
{{- $src := .src }}
|
|
|
|
{{- with $context }}
|
|
|
|
{{- with .Page.Resources.Match $src }}
|
|
|
|
{{- range . }}
|
|
|
|
{{- $src = .RelPermalink }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
<rapi-doc
|
2022-10-06 13:48:10 +00:00
|
|
|
{{- if eq (partial "output-format.hugo" .Page) "print" }}
|
|
|
|
allow-spec-file-download="false"
|
|
|
|
allow-server-selection="false"
|
|
|
|
allow-try="false"
|
2022-10-06 20:29:55 +00:00
|
|
|
font-size="default"
|
2022-10-06 13:48:10 +00:00
|
|
|
render-style="read"
|
|
|
|
{{- else }}
|
2022-06-22 18:32:18 +00:00
|
|
|
allow-spec-file-download="true"
|
2022-10-06 13:48:10 +00:00
|
|
|
allow-server-selection="true"
|
|
|
|
allow-try="true"
|
2022-10-06 20:29:55 +00:00
|
|
|
font-size="largest"
|
2022-10-06 13:48:10 +00:00
|
|
|
render-style="view"
|
|
|
|
{{- end }}
|
2022-06-22 18:32:18 +00:00
|
|
|
default-schema-tab="example"
|
|
|
|
layout="column"
|
|
|
|
load-fonts="false"
|
|
|
|
schema-description-expanded="true"
|
|
|
|
schema-style="table"
|
|
|
|
show-header="false"
|
|
|
|
spec-url="{{ $src }}"
|
|
|
|
sort-tags="true"
|
|
|
|
></rapi-doc>
|
2022-07-11 21:52:59 +00:00
|
|
|
{{- .Page.Store.Set "hasSwagger" true }}
|
2022-06-22 18:32:18 +00:00
|
|
|
{{- end }}
|