From: Kefu Chai Date: Mon, 22 Jun 2020 01:34:53 +0000 (+0800) Subject: doc/conf.py: s/add_javascript/add_js_file/ X-Git-Tag: v15.2.17~96^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f781e26c2a8d3e1d920c6fd32e81b5ef3019541;p=ceph.git 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 (cherry picked from commit 1704216628729666bc4e2127d613360bb0f7b33a) --- diff --git a/doc/conf.py b/doc/conf.py index 2a3a134e4e04..4a6e48b67043 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -114,7 +114,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