]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc/conf.py: jquery workaround docs-develop-docs-05qey4/deployments/2996
authorOto Šťáva <oto.stava@nic.cz>
Wed, 10 Jan 2024 14:18:57 +0000 (15:18 +0100)
committerOto Šťáva <oto.stava@nic.cz>
Wed, 10 Jan 2024 14:18:57 +0000 (15:18 +0100)
doc/conf.py

index 53e5e38cc952e8f8ddcab5d86bfdf1f1424a9d98..a2aad176a6192d874122ccedac8719a0da1380d2 100644 (file)
@@ -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"