Skip to content
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

Search theme #34

Merged
merged 4 commits into from
Jan 17, 2024
Merged
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
5 changes: 5 additions & 0 deletions doc/source/_static/scipy.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,8 @@ div.admonition-legacy {
.admonition-legacy.admonition > .admonition-title:after {
background-color: var(--pst-color-warning);
}

/* extra breathing room for logo image */
.navbar-brand.logo {
margin-right: 0.5rem;
}
11 changes: 11 additions & 0 deletions doc/source/_templates/sidebar-nav-bs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{# Displays the TOC-subtree for pages nested under the currently active top-level TOCtree element. #}
<nav class="bd-docs-nav bd-links" aria-label="{{ _('Section Navigation') }}">
<p class="bd-links__title" role="heading" aria-level="1">{{ _("Section Navigation") }}</p>
<div class="bd-toc-item navbar-nav">
{% if pagename.startswith("reference") %}
{{- generate_toctree_html("sidebar", maxdepth=1, collapse=True, includehidden=True, titles_only=True) -}}
{% else %}
{{- generate_toctree_html("sidebar", maxdepth=2, collapse=True, includehidden=False, titles_only=True) -}}
{% endif %}
</div>
</nav>
1 change: 0 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@
"icon_links": [],
"navbar_start": ["navbar-logo", "version-switcher"],
"navbar_persistent": [],
"navigation_depth": 1,
"switcher": {
"json_url": "https://scipy.github.io/devdocs/_static/version_switcher.json",
"version_match": version,
Expand Down