]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/conf.py: s/add_javascript/add_js_file/ 35688/head
authorKefu Chai <kchai@redhat.com>
Mon, 22 Jun 2020 01:34:53 +0000 (09:34 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 22 Jun 2020 02:37:57 +0000 (10:37 +0800)
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 <kchai@redhat.com>
doc/conf.py

index ee3dec12025c47c22e88468848ee841b370c3d49..34c91bf6cd4b5c3ca0a09f68269448ab886f111a 100644 (file)
@@ -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