Skip to content

Refactor Redocly code to handle new theme #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions layouts/redoc/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,32 @@
}
</style>
<!--Use wide page layout for the API reference pages-->
<div
class="row flex-md-nowrap"
style="
position: relative;
flex-wrap: nowrap;
margin-right: 9px;
max-width: calc(100% + 9px);
"
>
<nav
class="sidenav overflow-auto col-md-3 d-none d-md-block d-print-none sidebar-toggle-hidden-width"
style="width: 25%; border-right: 1px solid #e6e6e6"
;
<section class="main-layout api">
<div class="sidebar-layout" data-mf="true" style="display:none;">
<nav id="sidebar-v2" class="sidebar">
{{ partial "sidebar-v2.html" . }}
</nav>
</div>
<div
class="row flex-md-nowrap content-layout"
style="
position: relative;
flex-wrap: nowrap;
margin-right: 9px;
max-width: calc(100% + 9px);
"
>
{{ partial "sidebar.html" . }}
</nav>
<div class="nginx-docs-api-container">
<div id="api-component">{{ .Content}}</div>
<nav
id="sidebar"
class="sidenav overflow-auto col-md-3 d-none d-md-block d-print-none sidebar-toggle-hidden-width"
style="width: 25%; border-right: 1px solid #e6e6e6"
;
>
{{ partial "sidebar.html" . }}
</nav>
<div class="nginx-docs-api-container">
<div id="api-component">{{ .Content}}</div>
</div>
</section>
</div>
</div>
{{ end }}