{# Custom sidebar-primary.html for pytorch_sphinx_theme2 Based on pydata_sphinx_theme's sidebar-primary.html with PyTorch customizations: 1. pytorch-site-link appears in mobile sidebar when enabled 2. Version/version-switcher support #} {% block docs_sidebar %} {% set sidebar_items = sidebars or theme_primary_sidebar_items %} {% if theme_navbar_center or theme_navbar_end or sidebar_items or theme_primary_sidebar_end %} {# Header items that will be displayed in the sidebar on mobile #}
{% if sidebar_items %} {% endif %} {# Items that will snap to the bottom of the screen #} {% endif %} {% endblock docs_sidebar %}