From 0cf4f284319eebaf05aca4509015541a4b0e580e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Fri, 5 Sep 2025 10:32:29 +0200 Subject: [PATCH] docs: Try adding switcher.json to prefetch --- doc/_static/patch_templates/layout.html | 6 ++++++ doc/conf.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 doc/_static/patch_templates/layout.html diff --git a/doc/_static/patch_templates/layout.html b/doc/_static/patch_templates/layout.html new file mode 100644 index 000000000..0815d4397 --- /dev/null +++ b/doc/_static/patch_templates/layout.html @@ -0,0 +1,6 @@ +{% extends "!layout.html" %} + +{% block extrahead %} + {{ super() }} + +{% endblock %} diff --git a/doc/conf.py b/doc/conf.py index 653ef2d2d..4aec8e1a0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -30,9 +30,9 @@ html_static_path += ['_static'] # noqa -if pydata_sphinx_theme.__version__ == '0.16.1': +# if pydata_sphinx_theme.__version__ == '0.16.1': # See https://github.com/pydata/pydata-sphinx-theme/issues/2088 - templates_path.append('_static/patch_templates') # noqa +templates_path.append('_static/patch_templates') # noqa html_css_files += ['custom.css'] # noqa