From c81cb4e894012d79302de6a17c8f6a2bc3976b81 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 13 Apr 2023 19:03:39 +0100 Subject: [PATCH] doc: Workaround broken flyout menu Apply Workaround for broken flyout menu. Bug report: https://github.com/readthedocs/readthedocs.org/issues/10242 Workaround: https://github.com/readthedocs/sphinx_rtd_theme/issues/1452#issuecomment-1490504991 --- doc/conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 031d330207..b57b4b5dde 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -112,6 +112,16 @@ 'nbsphinx', ] +# Fix for the broken flyout ReadTheDocs menu as recommended here: +# https://github.com/readthedocs/sphinx_rtd_theme/issues/1452#issuecomment-1490504991 +# https://github.com/readthedocs/readthedocs.org/issues/10242 +# https://github.com/readthedocs/sphinx_rtd_theme/issues/1452 +# https://github.com/readthedocs/sphinx_rtd_theme/pull/1448 +if RTD: + extensions.append( + "sphinxcontrib.jquery" + ) + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']