From dc44de5b939361a7ecc037ea3b4235714b73390b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oto=20=C5=A0=C5=A5=C3=A1va?= Date: Wed, 10 Jan 2024 15:18:57 +0100 Subject: [PATCH] doc/conf.py: jquery workaround --- doc/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index 53e5e38cc..a2aad176a 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,6 +15,10 @@ if os.environ.get('READTHEDOCS', None) == 'True': # Add any Sphinx extension module names here, as strings. extensions = ['sphinx.ext.todo', 'sphinx.ext.viewcode', 'breathe'] +theme_major = sphinx_rtd_theme.__version__.partition('.')[0] +if theme_major == '2': + extensions.append('sphinxcontrib.jquery') + # Breathe configuration breathe_projects = {"libkres": "doxyxml"} breathe_default_project = "libkres" -- 2.47.2