mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-24 08:13:05 +00:00
28 lines
619 B
HTML
28 lines
619 B
HTML
|
{{- $context := .context }}
|
||
|
{{- $src := .src }}
|
||
|
{{- with $context }}
|
||
|
{{- with .Page.Resources.Match $src }}
|
||
|
{{- range . }}
|
||
|
{{- $src = .RelPermalink }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
<style>
|
||
|
rapi-doc::part(section-endpoint-head-method) {
|
||
|
font-size: 11px;
|
||
|
}
|
||
|
</style>
|
||
|
<rapi-doc
|
||
|
allow-spec-file-download="true"
|
||
|
default-schema-tab="example"
|
||
|
font-size="largest"
|
||
|
layout="column"
|
||
|
load-fonts="false"
|
||
|
render-style="view"
|
||
|
schema-description-expanded="true"
|
||
|
schema-style="table"
|
||
|
show-header="false"
|
||
|
spec-url="{{ $src }}"
|
||
|
sort-tags="true"
|
||
|
></rapi-doc>
|
||
|
{{- .Page.Store.Set "htmlHasSwagger" true }}
|
||
|
{{- end }}
|