From 6a9913425550169edcec39aae77c78719eb4327f Mon Sep 17 00:00:00 2001 From: Mirko Date: Tue, 14 Sep 2021 21:27:19 +0200 Subject: [PATCH] Sphinx: Use class instead of instance in add_lexer + Fixes search on sphinx>1.7.9 (#7623) * Use class instead of instance in add_lexer * Fixes search with newer sphinx --- doc/doc-requirements.txt | 1 - doc/sources/.templates/layout.html | 2 ++ doc/sources/sphinxext/preprocess.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/doc-requirements.txt b/doc/doc-requirements.txt index 4eb28efc1..be9dff62a 100644 --- a/doc/doc-requirements.txt +++ b/doc/doc-requirements.txt @@ -1,6 +1,5 @@ Cython>=0.24 # Frozen Sphinx requirements for easier pip installation -sphinx==1.7.9 sphinxcontrib-actdiag sphinxcontrib-blockdiag sphinxcontrib-nwdiag diff --git a/doc/sources/.templates/layout.html b/doc/sources/.templates/layout.html index 4d07d1a2c..a87dc0bac 100644 --- a/doc/sources/.templates/layout.html +++ b/doc/sources/.templates/layout.html @@ -106,12 +106,14 @@ }; +{%- block scripts %} {%- for scriptfile in script_files %} {%- endfor %} +{%- endblock %} {%- if use_opensearch %}