From 6e16e99340a1b7f8b2ff4129e686b8041d257c85 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Tue, 23 Jul 2019 09:28:36 +0100 Subject: [PATCH] Fix deprecation warning in theme --- CHANGES.rst | 2 +- .../sphinx/themes/bootstrap-astropy/layout.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index c0b7e080..0b918355 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ astropy-helpers Changelog 2.0.11 (unreleased) ------------------- -- No changes yet. +- Fixed deprecation warning in sphinx theme. [#493] 2.0.10 (2019-05-29) diff --git a/astropy_helpers/sphinx/themes/bootstrap-astropy/layout.html b/astropy_helpers/sphinx/themes/bootstrap-astropy/layout.html index 8e82f05c..801e699a 100644 --- a/astropy_helpers/sphinx/themes/bootstrap-astropy/layout.html +++ b/astropy_helpers/sphinx/themes/bootstrap-astropy/layout.html @@ -1,16 +1,16 @@ {% extends "basic/layout.html" %} -{# Collapsible sidebar script from default/layout.html in Sphinx #} -{% set script_files = script_files + ['_static/sidebar.js'] %} +{%- block scripts %} + {{ super() }} + + {% if not embedded %}{% endif %} +{%- endblock %} {# Add the google webfonts needed for the logo #} {% block extrahead %} - -{% if not embedded %}{% endif %} - + {% endblock %} - {% block header %}
{{ theme_logotext1 }}{{ theme_logotext2 }}{{ theme_logotext3 }}