From 72d8973bc9d6e529ab8688e2d816468e61bf581a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 22 Apr 2019 01:45:43 +0100 Subject: [PATCH] docs: Get rid of a ton of blocking resources from theme. --- docs/_templates/layout.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index c5770eda..f5fe42b0 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,9 +1,14 @@ {% extends "!layout.html" %} {% set css_files = css_files + ['_static/style.css'] %} -{% block extrahead %} +{# We don't support Sphinx search, so don't let its JS either. #} +{% block scripts %} +{% endblock %} + +{# Alabaster ships a completely useless custom.css, suppress it. #} +{%- block extrahead %} - {{ super() }} + {% endblock %} {% block footer %} @@ -18,7 +23,13 @@ g.defer=true; g.async=true; g.src=u+'js'; s.parentNode.insertBefore(g,s); })(); - + + {% endblock %}