From 1704216628729666bc4e2127d613360bb0f7b33a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 22 Jun 2020 09:34:53 +0800 Subject: [PATCH] doc/conf.py: s/add_javascript/add_js_file/ to address following warning: jenkins-build/build/workspace/ceph-pr-docs/doc/conf.py:102: RemovedInSphinx40Warning: The app.add_javascript() is deprecated. Please use app.add_js_file() instead. Signed-off-by: Kefu Chai --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index ee3dec12025c..34c91bf6cd4b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -99,7 +99,7 @@ edit_on_github_branch = 'master' # handles edit-on-github and old version warning display def setup(app): - app.add_javascript('js/ceph.js') + app.add_js_file('js/ceph.js') if ditaa is None: # add "ditaa" as an alias of "diagram" from plantweb.directive import DiagramDirective -- 2.47.3