Skip to content

Commit 9315be0

Browse files
authored
Fix container height + add breadcrumbs for redocly (#356)
fix: container height + add breadcrumbs to redocly
1 parent a0c567a commit 9315be0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

layouts/redoc/single.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.nginx-docs-api-container {
55
z-index: 0 !important;
66
max-width: calc(100% + 2.4rem);
7+
margin-top: 2rem;
78
}
89

910
@media (min-width: 768px) {
@@ -83,6 +84,13 @@
8384
>
8485
{{ partial "sidebar.html" . }}
8586
</nav>
87+
<section class="breadcrumb-layout" data-mf="true" style="display: none;">
88+
{{ if not .IsHome }}
89+
{{ if not (in .Params.display_breadcrumb "false" ) }}
90+
{{ partial "breadcrumb" .}}
91+
{{ end }}
92+
{{ end }}
93+
</section>
8694
<div class="nginx-docs-api-container">
8795
<div id="api-component">{{ .Content}}</div>
8896
</div>

0 commit comments

Comments
 (0)