Skip to content

Commit 3c74352

Browse files
committed
Customize sidebar-nav-bs via CSS, hiding the sidebar for now when responsive is mobile
1 parent 0b63d5d commit 3c74352

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

_templates/sidebar-nav-bs.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<nav class="bd-links d-none d-md-block" id="bd-docs-nav" aria-label="{{ _('Main navigation') }}">
2+
<div class="bd-toc-item active">
3+
{{ generate_nav_html("sidebar",
4+
show_nav_level=theme_show_nav_level|int,
5+
maxdepth=theme_navigation_depth|int,
6+
collapse=theme_collapse_navigation|tobool,
7+
includehidden=True,
8+
titles_only=True) }}
9+
</div>
10+
</nav>

conf.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,6 @@
104104
html_logo = '_static/images/logos/cwl/CWL-Logo-HD-cropped2.png'
105105
html_favicon = '_static/images/favicons/cwl/favicon.ico'
106106

107-
html_sidebars = {
108-
# TODO: this removes the sidebar with links from the episodes pages, but also
109-
# removes the Episodes from the navigation-center template?
110-
# "_episodes/*": [],
111-
"**": ["search-field.html", "sidebar-nav-bs.html"]
112-
}
113-
114107
html_theme_options = {
115108
"icon_links": [
116109
{

0 commit comments

Comments
 (0)