2022-04-02 13:29:34 +00:00
|
|
|
|
2022-02-28 00:19:32 +00:00
|
|
|
</div>
|
2022-02-27 09:27:12 +00:00
|
|
|
</main><!-- #body-inner -->
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "custom-comments.html" . }}
|
2021-09-13 17:23:38 +00:00
|
|
|
</div><!-- #body -->
|
2022-02-28 00:19:32 +00:00
|
|
|
{{- partial "menu.html" . }}
|
2017-08-16 21:14:58 +00:00
|
|
|
<script src="{{"js/clipboard.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2022-04-02 13:29:34 +00:00
|
|
|
{{- $wantsMermaid := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasMermaid")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasMermaid")) }}
|
|
|
|
{{- if (or $wantsMermaid (and (ne .Params.disableMermaid nil) (not .Params.disableMermaid)) (and (ne .Site.Params.disableMermaid nil) (not .Site.Params.disableMermaid)) ) }}
|
2022-03-16 21:40:38 +00:00
|
|
|
<script src="{{"js/jquery.svg.pan.zoom.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- if isset .Params "custommermaidurl" }}
|
|
|
|
<script src="{{ .Params.customMermaidURL }}"></script>
|
|
|
|
{{- else if isset .Site.Params "custommermaidurl" }}
|
|
|
|
<script src="{{ .Site.Params.customMermaidURL }}"></script>
|
|
|
|
{{- else }}
|
|
|
|
<script src="{{"js/mermaid.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
{{- end }}
|
|
|
|
{{- if isset .Params "mermaidinitialize" }}
|
2022-03-16 21:40:38 +00:00
|
|
|
{{- $.Scratch.Set "mermaidInitialize" .Params.mermaidInitialize }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- else if isset .Site.Params "mermaidinitialize" }}
|
2022-03-16 21:40:38 +00:00
|
|
|
{{- $.Scratch.Set "mermaidInitialize" .Site.Params.mermaidInitialize }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- else }}
|
2022-03-19 19:18:21 +00:00
|
|
|
{{- $.Scratch.Set "mermaidInitialize" "{}" }}
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- end }}
|
2021-11-03 19:50:35 +00:00
|
|
|
<script>
|
2022-03-27 16:42:11 +00:00
|
|
|
function useMermaid( config ){
|
|
|
|
if (typeof mermaid != 'undefined' && typeof mermaid.mermaidAPI != 'undefined') {
|
|
|
|
mermaid.initialize( Object.assign( { "securityLevel": "antiscript", "startOnLoad": false }, config ) );
|
|
|
|
if( config.theme ){
|
|
|
|
var write_style = variants.findLoadedStylesheet( 'variant-style' );
|
|
|
|
write_style.setProperty( '--CONFIG-MERMAID-theme', config.theme );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
useMermaid( JSON.parse({{ $.Scratch.Get "mermaidInitialize" }}) );
|
|
|
|
</script>
|
|
|
|
{{- end }}
|
2022-04-02 13:29:34 +00:00
|
|
|
{{- $wantsSwagger := or (and (eq (.Scratch.Get "relearnOutputFormat") "HTML") (.Page.Store.Get "htmlHasSwagger")) (and (eq (.Scratch.Get "relearnOutputFormat") "PRINT") (.Page.Store.Get "printHasSwagger")) }}
|
|
|
|
{{- if (or $wantsSwagger (and (ne .Params.disableSwagger nil) (not .Params.disableSwagger)) (and (ne .Site.Params.disableSwagger nil) (not .Site.Params.disableSwagger)) ) }}
|
2022-03-27 16:42:11 +00:00
|
|
|
{{- if isset .Params "customswaggerurl" }}
|
|
|
|
<script src="{{ .Params.customSwaggerURL }}"></script>
|
|
|
|
{{- else if isset .Site.Params "customswaggerurl" }}
|
|
|
|
<script src="{{ .Site.Params.customSwaggerURL }}"></script>
|
|
|
|
{{- else }}
|
|
|
|
<script src="{{ "/js/rapidoc-min.js" | relURL }}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
|
|
|
{{- end }}
|
|
|
|
{{- if isset .Params "swaggerinitialize" }}
|
|
|
|
{{- $.Scratch.Set "swaggerInitialize" .Params.swaggerInitialize }}
|
|
|
|
{{- else if isset .Site.Params "swaggerinitialize" }}
|
|
|
|
{{- $.Scratch.Set "swaggerInitialize" .Site.Params.swaggerInitialize }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $.Scratch.Set "swaggerInitialize" "{}" }}
|
|
|
|
{{- end }}
|
|
|
|
<script>
|
|
|
|
function useSwagger( config ){
|
2022-03-19 19:18:21 +00:00
|
|
|
if( config.theme ){
|
|
|
|
var write_style = variants.findLoadedStylesheet( 'variant-style' );
|
2022-03-27 16:42:11 +00:00
|
|
|
write_style.setProperty( '--CONFIG-SWAGGER-theme', config.theme );
|
2022-03-19 19:18:21 +00:00
|
|
|
}
|
2021-09-11 22:40:03 +00:00
|
|
|
}
|
2022-03-27 16:42:11 +00:00
|
|
|
useSwagger( JSON.parse({{ $.Scratch.Get "swaggerInitialize" }}) );
|
2021-09-11 22:40:03 +00:00
|
|
|
</script>
|
|
|
|
{{- end }}
|
2022-02-20 22:58:16 +00:00
|
|
|
<script src="{{"js/theme.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
|
2021-09-11 22:40:03 +00:00
|
|
|
{{- partial "custom-footer.html" . }}
|
2016-03-17 11:01:39 +00:00
|
|
|
</body>
|
|
|
|
</html>
|