Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 0 additions & 12 deletions src/sphinx_book_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,6 @@ def update_mode_thebe_config(app):
app.env.config.thebe_config = thebe_config


def update_navbar_defaults(app):
"""Keep the top navbar empty unless the user asks for something in it.

Without this, the pydata theme adds a search button to the navbar.
"""
theme_options = get_theme_options_dict(app)
theme_options.setdefault("navbar_persistent", [])


def check_deprecation_keys(app):
"""Warns about the deprecated keys."""

Expand Down Expand Up @@ -227,9 +218,6 @@ def setup(app: Sphinx):
app.add_message_catalog(MESSAGE_CATALOG_NAME, locale_dir)

# Events
app.connect(
"builder-inited", update_navbar_defaults, priority=400
) # before pydata theme
app.connect("builder-inited", update_mode_thebe_config)
app.connect("builder-inited", check_deprecation_keys)
app.connect("builder-inited", update_sourcename)
Expand Down
13 changes: 0 additions & 13 deletions src/sphinx_book_theme/assets/styles/sections/_sidebar-primary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,3 @@
flex-basis: variables.$sidebar-primary-width-widescreen;
}
}

// Default visibility for left sidebar is the reverse of what it is on mobile.
// It is shown by default, and hidden with a click.
// Mobile behavior is defined in the pydata sphinx theme
@media (min-width: variables.$breakpoint-lg) {
input#pst-primary-sidebar-checkbox:checked
~ .bd-container
.bd-sidebar-primary {
margin-left: -(variables.$sidebar-primary-width-widescreen);
visibility: hidden;
opacity: 0;
}
}
Loading