summaryrefslogtreecommitdiff
path: root/sphinx/ext/jsmath.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-23 00:37:54 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-24 23:59:49 +0900
commitf3168d98948525ed8464e7de2f53a5c7c43d6e57 (patch)
tree39386d7c67e037658a62f1df2a31db9dddd41c3a /sphinx/ext/jsmath.py
parent8fd34b88d324f075cee7c4bb845cc2d5bac71e91 (diff)
downloadsphinx-git-f3168d98948525ed8464e7de2f53a5c7c43d6e57.tar.gz
Rename app.add_javascript() to add_js_file()
Diffstat (limited to 'sphinx/ext/jsmath.py')
-rw-r--r--sphinx/ext/jsmath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py
index 7381da42b..dc00273a7 100644
--- a/sphinx/ext/jsmath.py
+++ b/sphinx/ext/jsmath.py
@@ -64,7 +64,7 @@ def builder_inited(app):
if not app.config.jsmath_path:
raise ExtensionError('jsmath_path config value must be set for the '
'jsmath extension to work')
- app.add_javascript(app.config.jsmath_path)
+ app.add_js_file(app.config.jsmath_path)
def setup(app):