{%- extends "basic/layout.html" %} {%- import "static/webpack-macros.html" as _webpack with context %} {# Metadata and asset linking #} {# Create the sidebar links HTML here to re-use in a few places #} {# If we have no sidebar links, pop the links component from the sidebar list #} {%- set sidebar_nav_html = generate_toctree_html("sidebar", show_nav_level=theme_show_nav_level|int, maxdepth=theme_navigation_depth|int, collapse=theme_collapse_navigation|tobool, includehidden=True, titles_only=True) -%} {% if sidebar_nav_html | length == 0 %} {% set sidebars = sidebars | reject("in", "sidebar-nav-bs.html") | list %} {% endif %} {# A flag for whether we include a secondary sidebar based on the page metadata #} {% set remove_sidebar_secondary = (meta is defined and meta is not none and 'html_theme.sidebar_secondary.remove' in meta) or not theme_secondary_sidebar_items %} {%- block css %} {# The data-cfasync attribute disables CloudFlare's Rocket loader so that #} {# mode/theme are correctly set before the browser renders the page. #} {# https://github.com/pydata/pydata-sphinx-theme/pull/1045 #} {{ _webpack.head_pre_assets() }} {{ _webpack.head_pre_icons() }} {{- css() }} {{ _webpack.head_js_preload() }} {%- endblock css %} {%- block extrahead %} {%- endblock extrahead %} {% block body_tag %} {# set up with scrollspy to update the toc as we scroll #} {# ref: https://getbootstrap.com/docs/4.0/components/scrollspy/ #}
{# A button hidden by default to help assistive devices quickly jump to main content #} {# ref: https://www.youtube.com/watch?v=VUR0I5mqq7I #} {{ _("Skip to main content") }} {%- endblock %} {%- block content %} {# checkbox to toggle primary sidebar #} {# Checkboxes to toggle the secondary sidebar #} {# A search field pop-up that will only show when the search button is clicked #} {%- if theme_announcement -%}