From eec951cbf654e56b2f8008502664c87b0a9374c8 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Tue, 14 Nov 2023 16:52:50 +0000 Subject: [PATCH] DOC: Fix accordion usage in docs --- docs/source/_ext/sphinx_accordion/accordion.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/source/_ext/sphinx_accordion/accordion.py b/docs/source/_ext/sphinx_accordion/accordion.py index 6c81677..71d934c 100644 --- a/docs/source/_ext/sphinx_accordion/accordion.py +++ b/docs/source/_ext/sphinx_accordion/accordion.py @@ -245,6 +245,8 @@ def setup(app): if path.endswith('.js'): if 'add_script_file' in dir(app): app.add_script_file(path) + else: + app.add_js_file(path) app.connect('html-page-context', update_context) app.connect('build-finished', copy_assets)