From d5945b1920b59dc81738e055f4ec8f433807d530 Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Mon, 2 Aug 2021 12:19:33 +0200 Subject: [PATCH] Fix doc code for updated Sphinx With Sphinx 4.x, some long deprecated functions have been removed, use the new replacement instead [0]. [0] https://www.sphinx-doc.org/en/master/extdev/deprecated.html Change-Id: I07406970f92d9c8917bd26421a394eb48cc39565 --- doc/source/_exts/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/_exts/events.py b/doc/source/_exts/events.py index 3f71e685..f3d637a8 100644 --- a/doc/source/_exts/events.py +++ b/doc/source/_exts/events.py @@ -24,7 +24,7 @@ LOG = logging.getLogger(__name__) def build_timer(app): - app.add_javascript("event_timer.js") + app.add_js_file("event_timer.js") output_file = os.path.join(".", "doc", "source", "events.rst") with open(output_file, "w") as out: template_dir = os.path.join(".", "doc", "source", "_exts")