Initial check-in after refactoring to use Hugo site generator with ReLearn template. HTTP Status Codes page not done--nor adwords added.
This commit is contained in:
25
themes/relearn/layouts/shortcodes/swagger.html
Normal file
25
themes/relearn/layouts/shortcodes/swagger.html
Normal file
@ -0,0 +1,25 @@
|
||||
{{- $original := .Get "src" }}
|
||||
{{- with .Page.Resources.Match $original }}
|
||||
{{- range . }}
|
||||
{{- $original = .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="{{ $original }}"
|
||||
sort-tags="true"
|
||||
></rapi-doc>
|
||||
{{- .Page.Store.Set "htmlHasSwagger" true }}
|
||||
Reference in New Issue
Block a user