Skip to content

MF: Support non-js theme switcher #563

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 4 additions & 3 deletions layouts/redoc/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</style>
<!--Use wide page layout for the API reference pages-->
<section class="main-layout api">
<div class="sidebar-layout" data-mf="true" style="display:none;">
<div data-mf="true" class="sidebar-layout">
<nav id="sidebar-v2" class="sidebar">
{{ partial "sidebar-v2.html" . }}
</nav>
Expand All @@ -77,17 +77,18 @@
"
>
<nav
data-mf="false"
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>
<section class="breadcrumb-layout" data-mf="true" style="display: none;">
<section data-mf="true" class="breadcrumb-layout">
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
{{ partial "breadcrumb" .}}
{{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
</section>
Expand Down
Loading