We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 983d541 commit 22122b8Copy full SHA for 22122b8
layouts/_default/api-baseof.html
@@ -50,7 +50,11 @@
50
51
<body>
52
{{ $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }}
53
- <redoc spec-url="{{ $specURL.String }}" hide-hostname="true" suppress-warnings="true" lazy-rendering></redoc>
+ {{ if strings.HasPrefix .RelPermalink "/reference/api/hub/" }}
54
+ <redoc spec-url="{{ $specURL.String }}" suppress-warnings="true" lazy-rendering></redoc>
55
+ {{ else }}
56
+ <redoc spec-url="{{ $specURL.String }}" hide-hostname="true" suppress-warnings="true" lazy-rendering></redoc>
57
+ {{ end }}
58
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
59
</body>
60
0 commit comments