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
This commit is contained in:
Jens Harbott 2021-08-02 12:19:33 +02:00
parent 6bb9acc7b2
commit d5945b1920
1 changed files with 1 additions and 1 deletions

View File

@ -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")